<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <base href="${request.contextPath}/"/>
    <meta name=”renderer” content=”webkit|ie-comp|ie-stand” />
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="keywords" content="快速开发平台,Web快速开发平台,ASP.NET快速开发平台,工作流,快速开发框架,软件可视化开发平台,快速开发 开源,快速开发平台 开源,APP快速开发,敏捷开发框架,快速开发" />
    <meta name="description" content="紫光云敏捷开发框架，是一个Web可视化开发平台，是一个集PC快速开发、组织架构、工作流、表单设计、自定义报表、APP快速开发等全方位功能于一体的高效、稳定的快速开发平台。" />
    <link rel="icon" href="favicon.ico">

    <title>农业四情微气象监测平台</title>
    <link href="Content/pace/pace-theme-loading-bar.css" rel="stylesheet" />
    <link href="Content/font/css/font-awesome.min.css" rel="stylesheet" />
    <link href="Content/font/learunfont/iconfont.css" rel="stylesheet" />
    <link href="Content/bootstrap/bootstrap.min.css" rel="stylesheet" />
    <link href="Content/jquery/plugin/toastr/toastr.css" rel="stylesheet" />
    <style>html{width:100%;height:100%}body{margin:0;padding:0;width:100%;height:100%;font-family:PingFangSC-Regular,Microsoft YaHei,SimSun,Arial,Helvetica,Verdana,sans-serif!important;color:#333;font-size:12px;background-color:initial;overflow:hidden}ul,li{list-style:none;margin:0;padding:0}a{color:#000;text-decoration:none}a:hover{color:#000;text-decoration:none}a:focus{outline:0;-moz-outline:0;color:#000;text-decoration:none}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#fff;opacity:1}.btn-primary{color:#fff;background-color:#3286ed;border-color:#3286ed}.btn-primary:hover{color:#fff;background-color:#156edb;border-color:#156edb}.btn-primary:focus,.btn-primary.focus{color:#fff;background-color:#027dcb;border-color:#0277c1}.btn-primary:active,.btn-primary.active,.open>.btn-primary.dropdown-toggle{color:#fff;background-color:#027dcb;border-color:#0277c1;background-image:none}.btn-primary:active:hover,.btn-primary:active:focus,.btn-primary:active.focus,.btn-primary.active:hover,.btn-primary.active:focus,.btn-primary.active.focus,.open>.btn-primary.dropdown-toggle:hover,.open>.btn-primary.dropdown-toggle:focus,.open>.btn-primary.dropdown-toggle.focus{color:#fff;background-color:#0167a8;border-color:#014e7f}.btn-primary.disabled:focus,.btn-primary.disabled.focus,.btn-primary:disabled:focus,.btn-primary:disabled.focus{background-color:#039cfd;border-color:#039cfd}.btn-primary.disabled:hover,.btn-primary:disabled:hover{background-color:#039cfd;border-color:#039cfd}.btn-default{color:#373a3c;background-color:#fff;border-color:#ccc}.btn-default:hover{color:#373a3c;background-color:#e6e6e6;border-color:#adadad}.btn-default:focus,.btn-default.focus{color:#373a3c;background-color:#e6e6e6;border-color:#adadad}.btn-default:active,.btn-default.active,.open>.btn-default.dropdown-toggle{color:#373a3c;background-color:#e6e6e6;border-color:#adadad;background-image:none}.btn-default:active:hover,.btn-default:active:focus,.btn-default:active.focus,.btn-default.active:hover,.btn-default.active:focus,.btn-default.active.focus,.open>.btn-default.dropdown-toggle:hover,.open>.btn-default.dropdown-toggle:focus,.open>.btn-default.dropdown-toggle.focus{color:#373a3c;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.disabled:focus,.btn-default.disabled.focus,.btn-default:disabled:focus,.btn-default:disabled.focus{background-color:#fff;border-color:#ccc}.btn-default.disabled:hover,.btn-default:disabled:hover{background-color:#fff;border-color:#ccc}.btn-success{color:#fff;background-color:#1bb99a;border-color:#1bb99a}.btn-success:hover{color:#fff;background-color:#158c75;border-color:#13846e}.btn-success:focus,.btn-success.focus{color:#fff;background-color:#158c75;border-color:#13846e}.btn-success:active,.btn-success.active,.open>.btn-success.dropdown-toggle{color:#fff;background-color:#158c75;border-color:#13846e;background-image:none}.btn-success:active:hover,.btn-success:active:focus,.btn-success:active.focus,.btn-success.active:hover,.btn-success.active:focus,.btn-success.active.focus,.open>.btn-success.dropdown-toggle:hover,.open>.btn-success.dropdown-toggle:focus,.open>.btn-success.dropdown-toggle.focus{color:#fff;background-color:#106d5b;border-color:#0b4a3d}.btn-success.disabled:focus,.btn-success.disabled.focus,.btn-success:disabled:focus,.btn-success:disabled.focus{background-color:#1bb99a;border-color:#1bb99a}.btn-success.disabled:hover,.btn-success:disabled:hover{background-color:#1bb99a;border-color:#1bb99a}.btn-warning{color:#fff;background-color:#f1b53d;border-color:#f1b53d}.btn-warning:hover{color:#fff;background-color:#eaa211;border-color:#e19b10}.btn-warning:focus,.btn-warning.focus{color:#fff;background-color:#eaa211;border-color:#e19b10}.btn-warning:active,.btn-warning.active,.open>.btn-warning.dropdown-toggle{color:#fff;background-color:#eaa211;border-color:#e19b10;background-image:none}.btn-warning:active:hover,.btn-warning:active:focus,.btn-warning:active.focus,.btn-warning.active:hover,.btn-warning.active:focus,.btn-warning.active.focus,.open>.btn-warning.dropdown-toggle:hover,.open>.btn-warning.dropdown-toggle:focus,.open>.btn-warning.dropdown-toggle.focus{color:#fff;background-color:#c98b0e;border-color:#a3700c}.btn-warning.disabled:focus,.btn-warning.disabled.focus,.btn-warning:disabled:focus,.btn-warning:disabled.focus{background-color:#f1b53d;border-color:#f1b53d}.btn-warning.disabled:hover,.btn-warning:disabled:hover{background-color:#f1b53d;border-color:#f1b53d}.btn-danger{color:#fff;background-color:#ff5d48;border-color:#ff5d48}.btn-danger:hover{color:#fff;background-color:#ff3015;border-color:#ff270b}.btn-danger:focus,.btn-danger.focus{color:#fff;background-color:#ff3015;border-color:#ff270b}.btn-danger:active,.btn-danger.active,.open>.btn-danger.dropdown-toggle{color:#fff;background-color:#ff3015;border-color:#ff270b;background-image:none}.btn-danger:active:hover,.btn-danger:active:focus,.btn-danger:active.focus,.btn-danger.active:hover,.btn-danger.active:focus,.btn-danger.active.focus,.open>.btn-danger.dropdown-toggle:hover,.open>.btn-danger.dropdown-toggle:focus,.open>.btn-danger.dropdown-toggle.focus{color:#fff;background-color:#f01c00;border-color:#c81700}.btn-danger.disabled:focus,.btn-danger.disabled.focus,.btn-danger:disabled:focus,.btn-danger:disabled.focus{background-color:#ff5d48;border-color:#ff5d48}.btn-danger.disabled:hover,.btn-danger:disabled:hover{background-color:#ff5d48;border-color:#ff5d48}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{padding:0}.form-control{color:#000;border-radius:0;box-shadow:none;font-size:9pt;height:28px;padding-top:0;padding-bottom:1px;padding-right:0;padding-left:5px;resize:none;border-radius:2px}.form-control:focus{border-color:#039cfd;box-shadow:none}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{pointer-events:none;cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}.dropdown-menu a{cursor:pointer}.lr-rblock{position:relative;width:100%;height:100%}.lr-layout-tool-right .btn-default:hover{color:#fff;background-color:#3286ed;border-color:transparent}.lr-scroll-wrap{position:relative;overflow:hidden;height:100%;width:100%}.lr-scroll-box{position:relative;top:0;left:0;min-height:100%;min-width:100%;overflow:hidden;zoom:1}.lr-scroll-vertical{position:absolute;width:4px;height:100%;top:0;right:0;display:none;z-index:100}.lr-scroll-wrap:hover>.lr-scroll-vertical,.lr-scroll-active>.lr-scroll-vertical{display:block}.lr-scroll-vertical-block{position:absolute;width:100%;height:0;top:0;left:0;background-color:#B3B3B3;cursor:pointer;-webkit-border-radius:16px;-moz-border-radius:16px;border-radius:16px;-webkit-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;-moz-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;-o-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;transition:opacity .2s ease-in-out,background-color .2s ease-in-out}.lr-scroll-horizontal{position:absolute;width:100%;height:4px;bottom:0;right:0;display:none;z-index:100}.lr-scroll-wrap:hover>.lr-scroll-horizontal,.lr-scroll-active>.lr-scroll-horizontal{display:block}.lr-scroll-horizontal-block{position:absolute;height:100%;width:0;top:0;left:0;background-color:#B3B3B3;cursor:pointer;-webkit-border-radius:16px;-moz-border-radius:16px;border-radius:16px;-webkit-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;-moz-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;-o-transition:opacity .2s ease-in-out,background-color .2s ease-in-out;transition:opacity .2s ease-in-out,background-color .2s ease-in-out}.InternetExplorer .pace,.IE .pace{display:none}.lr-loadbg{position:fixed;top:0;left:0;background:#fff;height:100%;width:100%;z-index:100}.lr-loading-bar{position:fixed;top:0;left:0;z-index:29891015;cursor:wait;width:100%;height:100%;display:none}.lr-loading-bar-bg{position:absolute;top:0;left:0;height:100%;width:100%;opacity:.0;filter:alpha(opacity=00);background:#fff}.lr-loading-bar-message{position:relative;left:0;top:50%;z-index:1;color:#666;font-size:20px;border:1px solid #bbb;width:300px;height:80px;line-height:78px;padding-left:80px;padding-right:20px;background:#fff;border-radius:8px;background-image:url(Content/images/loading.gif);background-repeat:no-repeat;background-position:8px 50%;box-shadow:0 1px 15px rgba(0,0,0,.175);margin:auto;margin-top:-40px}#toast-container{z-index:198910188}#toast-container>div{box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);opacity:1}#toast-container>:hover{box-shadow:0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);opacity:1}.toast{background-color:#64b0f2}.toast-success{background-color:#1bb99a;border:2px solid #1bb99a}.toast-error{background-color:#ff3015;border:2px solid #ff3015}.toast-info{background-color:#3db9dc;border:2px solid #3db9dc}.toast-warning{background-color:#f1b53d;border:2px solid #f1b53d}.alerts-demo{background-color:#f7f7f9;border:1px solid #eceeef;padding:20px}.progress-sm{height:.7rem}.progress-xs{height:.4rem}label{font-weight:500}.input-group-addon{font-size:1.2rem;line-height:1.5rem}.lr-theme-setting{position:absolute;top:50%;right:-160px;z-index:10;width:160px;-webkit-transition:right .2s;transition:right .2s;border:1px solid #dee5e7;margin-top:-100px}.lr-theme-setting.opened{right:-1px}.lr-theme-setting .btn{position:absolute;top:-1px;left:-43px;padding:10px 15px;background:#f6f8f8!important;border-color:#dee5e7!important;border-right-width:0;outline:none!important;box-shadow:none!important;color:#58666e!important;border-top-right-radius:0;border-bottom-right-radius:0}.lr-theme-setting .panel-heading{color:#333;border-color:#edf1f2;background-color:#f6f8f8;font-size:14px;padding:10px 15px}.lr-theme-setting .panel-body{background-color:#fff;padding:15px;color:#58666e}.lr-theme-setting .panel-body>div{position:relative;margin-bottom:10px;cursor:pointer;padding-left:20px}.lr-theme-setting .panel-body label input{position:absolute;outline:none!important;left:0;margin-top:3px}.lr-frame-top{position:absolute;top:0;left:0;width:100%;z-index:2;height:40px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.lr-logo-title{display:block;position:absolute;top:0;height:100%;width:320px;line-height:0;cursor:pointer;text-decoration:none;font-size:18px;white-space:nowrap}.lr-logo-title img{width:320px}.lr-logo-title:hover{color:#3498DB}.lr-frame-menu{position:absolute}.lr-frame-menu-wrap{position:relative;top:0;height:100%;overflow:visible;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.lr-frame-menu-wrap .lr-scroll-box{overflow:visible}.lr-uitheme-default .lr-frame-menu-wrap{top:-8px}.lr-frame-menu li{position:relative;width:100%;zoom:1}.lr-menu-item{display:block;position:relative;text-decoration:none;width:100%;overflow:hidden}.lr-menu-item-icon{font-size:14px;width:25px;vertical-align:middle;margin-bottom:1px;opacity:.9;filter:alpha(opacity=90)}.lr-uitheme-default .lr-menu-item-icon{opacity:1;filter:alpha(opacity=100)}.lr-second-menu-list,.lr-three-menu-list{display:none}.lr-frame-tabs{position:absolute;top:40px;left:0;width:100%;height:30px;z-index:1;padding:0 32px 0 85px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none}.lr-uitheme-default .lr-frame-tabs{top:60px;left:0;padding:0 32px 0 100px}.lr-frame-tabs-wrap{position:relative;overflow:hidden;width:100%;height:100%}.lr-frame-tabs-wrap ul{position:relative;height:100%;white-space:nowrap}.lr-frame-tabItem{position:relative;padding:0 20px 0 15px;margin-left:5px;display:inline-block;white-space:nowrap;cursor:pointer}.lr-uitheme-default .lr-frame-tabItem{padding:0 10px 0 10px;margin-left:0}.lr-frame-tabItem .reomve{position:absolute;width:12px;height:13px;display:block;background:url(Content/images/tab_close.png) no-repeat}.lr-uitheme-windos .lr-frame-tabItem:hover .reomve{display:inline-block;background:url(Content/images/tab_close.png) no-repeat}.lr-uitheme-default .lr-frame-tabItem .reomve{display:none}.lr-uitheme-default .lr-frame-tabItem{padding:0 18px 0 12px}.lr-uitheme-default .lr-frame-tabItem:hover .reomve{display:inline-block;border-radius:50%;margin-left:5px;width:13px;height:13px;background-position:0 0;background-size:98%}.lr-frame-tabItem .reomve:hover{background-position:0 -12px}.lr-frame-main{position:absolute;width:100%;height:100%;z-index:0}.lr-uitheme-windos .lr-frame-main{background:#F7FEFF}.lr-uitheme-default .lr-frame-main{background:#f8f8f8}.lr-frame-main>img{position:absolute;top:50%;left:50%;margin:-200px 0 0 -300px;z-index:-1}.lr-frame-iframe{width:100%;height:100%;display:none}.lr-frame-iframe.active{display:block}.lr-frame-personCenter{position:absolute;z-index:4}.lr-frame-personCenter>a{position:relative;display:block}.lr-uitheme-default .lr-frame-personCenter>.dropdown-toggle{color:#333}.lr-uitheme-windos .lr-frame-personCenter>.dropdown-toggle{color:#fff}.lr-frame-personCenter>.dropdown-toggle>img{float:left;width:26px;height:26px;border-radius:50%;margin:7px 5px 0 0}.lr-frame-personCenter .dropdown-menu>li>a{padding:5px 15px;color:#333}.lr-uitheme-windos .lr-frame-personCenter .dropdown-menu>li>a{color:#333}.lr-uitheme-default .lr-frame-personCenter .dropdown-menu>li>a{color:#333}.lr-frame-personCenter .dropdown-menu{width:120px}.lr-uitheme-windos .lr-frame-personCenter .dropdown-menu{border:1px solid transparent;box-shadow:none}dropdown-menu>li>a>.glyphicon,.dropdown-menu>li>a>.fa,.dropdown-menu>li>a>.ion{margin-right:10px}.dropdown-menu i{vertical-align:inherit;margin-bottom:3px}.lr_frame_fullscreen{position:absolute;top:40px;right:10px;height:29px;line-height:29px;z-index:3}.lr_frame_fullscreen a{cursor:pointer;color:#999}.lr_frame_fullscreen a:hover{color:#999}.lr-im-icon{position:fixed;z-index:10;bottom:11px;right:13px;width:35px;height:35px;border:0;border-radius:25px;background-color:rgba(0,0,0,0.4);text-align:center}.lr-im-icon i{color:#fff;line-height:35px;font-size:20px}.lr-frame-main>img{opacity:.15}.lr-layer{padding:35px 0 38px 0!important}.lr-layer-nobtn{padding:35px 0 0 0!important}.lr-layer-nobtn .layui-layer-title,.lr-layer .layui-layer-title{position:absolute;top:0;left:0;width:100%;height:35px;line-height:35px;border-radius:4px 4px 0 0}.lr-layer-nobtn .layui-layer-setwin,.lr-layer .layui-layer-setwin{top:11.5px;right:11.5px}.lr-layer-nobtn .layui-layer-content,.lr-layer .layui-layer-content{height:100%;width:100%}.lr-layer-nobtn .layui-layer-content{border-radius:0 0 4px 4px}.lr-layer-nobtn iframe,.lr-layer iframe{height:100%!important;width:100%!important}.lr-layer .layui-layer-btn{moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none;position:absolute;bottom:0;left:0;width:100%;height:38px;border-radius:0 0 4px 4px;padding:0!important;background-color:#F8f8f8;border-top:1px solid #eee}.lr-layer .layui-layer-btn>a{margin:4px 6px 0 0}.lr-layer-btn-cb{position:absolute;top:9px;left:10px;margin:0}.lr-layer-btn-cb input{margin-top:3px!important;margin-left:-15px!important;cursor:pointer}.lr-contextmenu-wrap{position:absolute;top:0;left:0;background-color:#fff;border:1px solid #ccc;border-radius:4px;min-width:120px;padding:5px 0;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175);z-index:1000;display:none}.lr-contextmenu-ul>li>a{display:block;padding:2px 10px;clear:both;font-weight:400;line-height:1.42857143;color:#777;white-space:nowrap}.lr-contextmenu-ul>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.lr-tree ul,.lr-tree li{list-style-type:none;margin:0;padding:0}.lr-tree-icon,.lr-tree-ec-icon,.lr-tree-node-cb,.lr-tree-node-icon{border:0 none;height:18px;margin:0;padding:0;margin-top:3px;vertical-align:top;width:16px;background-repeat:no-repeat}.lr-tree-node-cb{height:16px;padding:2px;margin-top:4.5px;margin-right:5px}ul.lr-tree-node-ct{line-height:0;zoom:1}.lr-tree-node-expanded>.lr-tree-ec-icon{background-image:url(Content/images/learuntree/arrows.gif)!important;background:transparent no-repeat -16px 0}.lr-tree-node-expanded>.lr-tree-ec-icon:hover{background:transparent no-repeat -48px 0}.lr-tree-node-collapsed>.lr-tree-ec-icon{background-image:url(Content/images/learuntree/arrows.gif)!important;background:transparent no-repeat 0 0}.lr-tree-node-collapsed>.lr-tree-ec-icon:hover{background:transparent no-repeat -32px 0}.lr-tree-node{white-space:nowrap;color:#000}.lr-tree-node{color:#000}.lr-tree-node i{font-size:13px;width:13px;color:#666}.lr-tree-node a{text-decoration:none;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none;-kthml-user-focus:normal;-moz-user-focus:normal;-moz-outline:0 none;outline:0 none}.lr-tree-node a span{text-decoration:none;padding:1px 3px 1px 2px}.lr-tree-node a:hover{text-decoration:none}.lr-tree-node .lr-tree-selected{background-color:#2F94EE!important;color:#fff}.lr-tree-node .lr-tree-selected a span{color:#fff}.lr-tree-node .lr-tree-selected i{color:#fff}.lr-tree-node-el{position:relative;line-height:25px;cursor:default;cursor:pointer}.lr-tree-node-el:hover{background-color:#eee}.lr-tree-loading{position:absolute;top:3px;right:5px;display:none}.lr-tree-loading>img{height:14px;width:14px}.lr-select{position:relative;cursor:pointer;width:100%;height:28px;line-height:26px;border:1px solid #ccc;background:#fff url(Content/images/learunselect/icon.png) no-repeat right center;padding-left:4px;border-radius:2px}.lr-select.lr-select-focus{border:1px solid #039cfd}.lr-select-placeholder{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;-khtml-user-select:none;user-select:none;color:#999;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lr-select-option{position:absolute;border:1px solid #dedede;width:100%;background:#fff;z-index:1000;top:28px;border-radius:2px}.lr-select-option-content{position:relative;width:100%}.lr-select-option .lr-selectitem-li{min-height:26px;line-height:26px;overflow:hidden;cursor:pointer;padding:0 5px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.lr-select-option .lr-selectitem-li:hover{background-color:#eee}.lr-selectitem-li.selected{background-color:#3498DB!important;color:#fff}.lr-select-option-search{border-top:1px solid #ccc;position:absolute;border-bottom:0;left:0;height:25px;width:100%;line-height:24px}.lr-select-option-search>input{color:#000;border-radius:0;border:0;box-shadow:none;font-size:9pt;height:28px;padding-top:0;padding-bottom:1px;padding-right:0;padding-left:5px;resize:none;background-color:#fff;background-image:none;height:24px;line-height:1.42857143;margin:0;-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;width:100%;outline:0;padding:0;padding-left:10px}.lr-select-option-search .input-query{position:absolute;right:4px;top:0;color:#ccc;font-size:16px;cursor:default}.lr-select-node-cb{border:0 none;margin:0;vertical-align:top;width:16px;height:16px;background-repeat:no-repeat;padding:2px;margin-top:4.5px;margin-right:5px}</style>

    <script src="Content/pace/pace.min.js"></script>
    <script src="Content/jquery/jquery-1.10.2.min.js"></script>
    <script src="Content/signalr/jquery.signalR-2.2.2.min.js"></script>
    <!--[if lt IE 9]>
    <script src="~/Content/bootstrap/html5shiv.min.js"></script>
    <script src="~/Content/bootstrap/respond.min.js"></script>
    <![endif]-->
</head>
<body class="Firefox 64.0 lr-uitheme-windos">
<div class="lr-loadbg" id="lr_loadbg"></div>

<style>.lr-logo-title{position:relative;margin-left:10px;height:50px;line-height:50px;cursor:pointer;text-decoration:none}.lr-frame-top{background:#24A1E7;height:50px;line-height:50px}.lr-frame-menu{left:0;bottom:30px!important;height:100%;height:calc(100% - 110px);width:100%;max-height:450px;max-width:380px;z-index:4;background-color:#F7FEFF;border-top-left-radius:5px;border-top-right-radius:5px;box-shadow:#D2D8D9 0 0 10px 1px;display:none;overflow:hidden}.lr-frame-menu-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:#fff;filter:alpha(opacity=1);opacity:.01;-moz-opacity:.01;z-index:-1}.lr-frame-menu-wrap{position:absolute;width:160px;background-color:#24A1E7;border-top-left-radius:5px;padding-top:10px}.lr-first-menu-list>li>.lr-menu-item{color:#fff;height:40px;line-height:40px;padding:0 10px 0 20px}.lr-first-menu-list>li>.lr-menu-item:hover{background:#178cce}.lr-first-menu-list>li>.lr-menu-item>.lr-menu-item-arrow{display:block;position:absolute;text-indent:0;font-weight:bold}.lr-first-menu-list>li.active .lr-menu-item-arrow{width:0;height:0;right:0;top:50%;margin-top:-8px;text-indent:-99999px;border-style:solid;border-width:8px;border-color:transparent;border-right-color:#f7feff;border-left:none}.lr-second-menu-wrap{position:absolute;top:0;right:0;width:220px;height:100%;border-top-right-radius:5px;border-bottom-right-radius:5px;padding-top:10px}.lr-second-menu-list .lr-menu-item{height:40px;line-height:40px;color:#000;padding:0 15px 0 20px;cursor:pointer}.lr-second-menu-list .lr-menu-item:hover{background-color:#dfe5e6}.lr-three-menu-list .lr-menu-item{padding-left:50px}.lr-second-menu-list .lr-menu-item-arrow .fa-angle-left{position:absolute;right:15px;top:16px}.lr-second-menu-list .open .lr-menu-item-arrow .fa-angle-left{-webkit-transform:rotate(-90deg);-ms-transform:rotate(-90deg);-o-transform:rotate(-90deg);transform:rotate(-90deg)}.lr-frame-tabs{padding:0 55px 0 88px;background:#24A1E7;top:50px}.lr-frame-tabs-wrap{height:30px}.lr-frame-tabItem{height:29px;line-height:29px;background:#24A1E7;color:#fff;border-radius:4px 4px 0 0}.lr-frame-tabItem i{display:none}.lr-frame-tabItem.active{border-bottom:0;height:30px;background:#F7FEFF;color:#2e99d4;font-weight:bold}.lr-frame-tabItem .reomve{top:8px;right:4px}.lr-frame-main{padding:80px 0 30px 0;background:#F7FEFF}.lr-frame-personCenter{top:0;right:10px;height:40px;line-height:40px}.lr-frame-personCenter>a{color:#fff}.lr-frame-personCenter>.dropdown-toggle>img{border:2px solid #fff}.lr_frame_fullscreen{top:50px}.lr_frame_fullscreen a{color:#fff}.lr_frame_fullscreen a:hover{color:#96CCE9}.lr-applist-btn{position:absolute;left:10px;top:51px;background:#F7FEFF;padding:0 15px;line-height:29px;height:29px;color:#2e99d4;font-weight:bold;border-radius:4px 4px 0 0;cursor:pointer;z-index:3}.lr-applist-btn.off{background:#24A1E7;color:#fff;font-weight:initial}.lr-windows-bottom-bar{position:absolute;bottom:0;left:0;height:30px;width:100%;background:#24A1E7;z-index:3}.lr-windows-start{position:absolute;top:0;left:10px;height:29px;line-height:29px;z-index:5;color:#fff;cursor:pointer}.lr-windows-start>i{font-size:16px}.lr-windows-start>span{margin-left:5px}.lr-windows-start:hover{color:#96CCE9}.lr-applist-content{position:absolute;padding:80px 0 68px 0;height:100%;width:100%;z-index:1}.lr-applist-slidebox-slider{position:absolute;left:0;bottom:45px;height:23px;width:100%}.lr-applist-slidebox-slider-content{display:table;margin:0 auto}.lr-applist-slidebox-slider li{position:relative;float:left;cursor:pointer;text-align:center;border:0;margin:10px}.lr-applist-slidebox-slider li.active i{color:#24A1E7}.lr-applist-slidebox-slider li:first-child i{margin-left:3px}.lr-applist-slidebox-slider li i{color:#B3E1F9}.lr-applist-slidebox{position:relative;width:100%;height:100%}.lr-applist-slidebox ul{display:none}.lr-applist-slidebox ul.active{display:block}.lr-applist-slidebox .appItem{position:relative;float:left;margin:30px;border-radius:10px;cursor:pointer}.lr-applist-slidebox .appItem .icon{position:relative;width:100px;height:100px;margin:0 auto;border-radius:3px;text-align:center}.lr-applist-slidebox .appItem:nth-of-type(7n+1) .icon{background-color:#68ADEA}.lr-applist-slidebox .appItem:nth-of-type(7n+1):hover .icon{background-color:#429BE9}.lr-applist-slidebox .appItem:nth-of-type(7n+2) .icon{background-color:#C96BF0}.lr-applist-slidebox .appItem:nth-of-type(7n+2):hover .icon{background-color:#AD27E5}.lr-applist-slidebox .appItem:nth-of-type(7n+3) .icon{background-color:#58DFE7}.lr-applist-slidebox .appItem:nth-of-type(7n+3):hover .icon{background-color:#3DC8D0}.lr-applist-slidebox .appItem:nth-of-type(7n+4) .icon{background-color:#FADD1B}.lr-applist-slidebox .appItem:nth-of-type(7n+4):hover .icon{background-color:#F3C60A}.lr-applist-slidebox .appItem:nth-of-type(7n+5) .icon{background-color:#D775E1}.lr-applist-slidebox .appItem:nth-of-type(7n+5):hover .icon{background-color:#E44BF3}.lr-applist-slidebox .appItem:nth-of-type(7n+6) .icon{background-color:#F4A944}.lr-applist-slidebox .appItem:nth-of-type(7n+6):hover .icon{background-color:#E7890C}.lr-applist-slidebox .appItem:nth-of-type(7n) .icon{background-color:#F37E8D}.lr-applist-slidebox .appItem:nth-of-type(7n):hover .icon{background-color:#F4485D}.lr-applist-slidebox .appItem .icon i{text-align:center;line-height:80px;font-size:45px;color:#fff}.lr-applist-slidebox .appItem .icon-text{position:relative;margin:0 auto;line-height:20px;text-align:center;text-align:center;margin-top:-24px;color:#fff}.lr-im-bell{position:absolute;right:5px;bottom:0;width:30px;height:30px;line-height:30px;text-align:center;font-size:16px;color:#FFF;cursor:pointer;display:none}.lr-im-bell>.point{background:#D71012;position:absolute;right:5px;top:5px;width:7px;height:7px;border-radius:50%;display:none}.lr-im-body{position:fixed;right:10px;bottom:30px;width:248px;height:400px;z-index:50;padding-top:40px;background:#fff;border-radius:3px;display:none}.lr-im-body.open{display:block}.lr-im-title{position:absolute;top:0;left:0;background:#24A1E7;width:100%;height:40px;border-radius:3px 3px 0 0}.lr-im-title .title-item{position:absolute;width:80px;height:30px;top:10px;left:30px;cursor:pointer;color:#fff;font-size:14px;line-height:30px;text-align:center;border-radius:3px 3px 0 0}.lr-im-title .title-item.active{color:#24A1E7;background:#fff}.lr-im-title .title-item.title-item-two{left:139px}.lr-im-content{position:relative;width:100%;height:100%;display:none;border-left:0;border:1px solid #E5E5E5;border-top:0}.lr-im-content.active{display:block}.lr-im-msg-list{position:relative;width:100%;height:100%}.lr-im-msg-list .msg-item{position:relative;width:100%;height:50px;cursor:pointer}.lr-im-msg-list .msg-item:after{content:'';display:block;position:absolute;height:1px;width:100%;background:#F8F8F8;bottom:0;left:0}.lr-im-msg-list .msg-item .photo{position:absolute;width:30px;height:30px;border-radius:3px;top:10px;left:10px}.lr-im-msg-list .msg-item .icon{position:absolute;top:10px;left:10px;width:30px;height:30px;line-height:30px;border-radius:3px;background-color:#2B97DF;color:#fff;font-size:18px;text-align:center}.lr-im-msg-list .msg-item .point{width:8px;height:8px;background:#DB3702;border-radius:50%;position:absolute;right:-4px;top:-2px;display:none}.lr-im-msg-list .msg-item img{width:100%;height:100%;border-radius:3px}.lr-im-msg-list .msg-item .name{position:absolute;top:8px;left:50px;height:16px;color:#333;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lr-im-msg-list .msg-item .msg{position:absolute;top:24px;left:50px;height:16px;width:188px;color:#999;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.lr-im-msg-list .msg-item .date{position:absolute;right:10px;top:8px;height:16px;color:#666;font-size:12px;text-align:right}.lr-im-userlist{padding-top:40px}.lr-im-search{position:absolute;top:0;left:0;width:100%;height:40px;font-size:0;padding:10px}.lr-im-search i{position:absolute;left:15px;top:14px;font-size:12px;font-weight:100;color:#999;z-index:1}.lr-im-search input{position:relative;text-align:left;border:1px solid transparent;font-size:12px;width:100%;height:100%;background:#F8F8F8;border-radius:3px;box-sizing:border-box;color:#999;outline:0;text-indent:20px}.lr-im-search input::-webkit-input-placeholder{text-align:center}.lr-im-search input::-moz-placeholder{text-align:center}.lr-im-search input:-moz-placeholder{text-align:center}.lr-im-search input:-ms-input-placeholder{text-align:center}.lr-im-content-userlist{position:relative;width:100%;height:100%}.lr-im-content-userlist .lr-scroll-box{padding:0 10px}.lr-im-item-name{position:relative;width:100%;height:30px;line-height:30px;cursor:pointer;font-size:12px;color:#666}.lr-im-item-name>i{color:#999;font-size:14px;margin:3px}.lr-im-item-name.open>i{-webkit-transform:rotate(90deg);-moz-transform:rotate(90deg);-ms-transform:rotate(90deg);-o-transform:rotate(90deg);transform:rotate(90deg)}.lr-im-user-list{position:relative;width:100%}.lr-im-user{position:relative;height:43px;line-height:43px;padding-left:40px}.lr-im-user>img{position:absolute;top:6px;left:0;width:30px;height:30px;border-radius:50%}.lr-im-black-overlay{position:fixed;left:0;top:0;width:100%;height:100%;overflow:hidden;background:rgba(51,51,51,0.4);z-index:52;display:none}.lr-im-black-overlay.open{display:block}.lr-im-dialog{position:absolute;left:50%;top:50%;margin-left:-270px;margin-top:-240px;width:540px;height:480px;background:#f3f3f3;border-radius:3px;box-shadow:0 0 2px 0 rgba(0,0,0,0.50);padding-top:40px;padding-bottom:135px}.lr-im-header{position:absolute;top:0;left:0;width:100%;height:40px;border-bottom:1px solid #E5E5E5;line-height:39px;padding-left:10px;font-size:14px;color:#fff;background:#24A1E7;text-align:center}.lr-im-header .im-close{position:absolute;top:10px;right:10px;width:20px;height:20px;line-height:20px;text-align:center;cursor:pointer;font-size:12px;color:#fff;font-weight:100}.lr-im-msgcontent{position:relative;width:100%;height:100%}.lr-im-msgcontent-tool{position:absolute;height:25px;line-height:24px;text-align:right;width:100%;left:0;bottom:110px;padding-right:10px;border-top:1px solid #E5E5E5;background:#F8F8F8}.lr-im-msgcontent-tool>span{cursor:pointer}.lr-im-input{position:absolute;bottom:0;left:0;width:100%;height:110px;border-top:1px solid #E5E5E5}.lr-im-input .inp{width:100%;height:100%;resize:none;border:0;outline:0;padding:5px;background:transparent}.lr-im-msgcontent .im-time{position:relative;font-size:12px;color:#999;width:100%;height:15px;line-height:15px;text-align:left;padding:0 50px}.lr-im-msgcontent .me.im-time{text-align:right}.lr-im-msgcontent .im-me,.lr-im-msgcontent .im-other{position:relative;word-break:break-all;height:auto;overflow:hidden;width:100%;padding:0 50px;margin-bottom:10px;text-align:right}.lr-im-msgcontent .im-other{text-align:left}.lr-im-msgcontent .im-other .headimg{position:absolute;top:0;left:10px;width:30px;height:30px;border-radius:50%}.lr-im-msgcontent .im-me img,.lr-im-msgcontent .im-other img{width:100%;height:100%;border-radius:50%}.lr-im-msgcontent .im-me .content,.lr-im-msgcontent .im-other .content{display:inline-block;background:#FFF;border:1px solid #E5E5E5;padding:5px 13px 6px 19px;font-size:12px;color:#333;box-sizing:border-box;position:relative;float:left;max-width:100%;text-align:left;line-height:20px}.lr-im-msgcontent .im-me .content{float:right}.lr-im-msgcontent .im-other .arrow{width:8px;height:8px;border:1px solid #E5E5E5;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);background:#fff;position:absolute;top:11px;left:46px;z-index:1;clip:rect(0,8px,8px,0);border-bottom:0;border-right:0}.lr-im-msgcontent .im-me .headimg{position:absolute;top:0;right:10px;width:30px;height:30px;border-radius:50%}.lr-im-msgcontent .im-me .arrow{width:8px;height:8px;border:1px solid #E5E5E5;-webkit-transform:rotate(-45deg);-moz-transform:rotate(-45deg);-ms-transform:rotate(-45deg);-o-transform:rotate(-45deg);transform:rotate(-45deg);background:#fff;position:absolute;top:11px;right:46px;z-index:1;clip:rect(0,8px,8px,0);border-top:0;border-left:0}.imHasMsg .point{display:block}.lr-lg-setting{position:absolute;top:21px;left:333px;font-size:14px;z-index:4;color:#c6c6c6}.lr-lg-setting>a{color:#c6c6c6}.lr-lg-setting span{color:#fff}</style>
<div class="lr-frame-top">
    <a class="lr-logo-title">
        <img src="LR_SystemModule/LogoImg/GetImg?code=windows">
    </a>
</div>

<div class="lr-applist-btn off" id="lr_applist_btn">应用列表</div>
<div class="lr-applist-content" id="lr_applist_content">
    <div class="lr-applist-slidebox-slider">
        <ul class="lr-applist-slidebox-slider-content"></ul>
    </div>
    <div class="lr-applist-slidebox" id="lr_applist_slidebox"></div>
</div>



<div class="lr-windows-bottom-bar">
    <div class="lr-windows-start" id="lr_windows_start" title="开始菜单"><i class="fa fa-windows"></i><span>开始菜单</span></div>
    <div class="lr-im-bell" title="消息中心">
        <span class="point"></span>
        <i class="fa fa-bell"></i>
    </div>
</div>

<!--<div class="lr-lg-setting" id="lr_lg_setting">-->
    <!--<a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown" aria-expanded="false">[<span></span>]</a>-->
    <!--<ul class="dropdown-menu"></ul>-->
<!--</div>-->

<div class="lr-im-body">
    <div class="lr-im-title">
        <div class="title-item active" data-value="lr_im_msglist">
            消息
        </div>
        <div class="title-item title-item-two" data-value="lr_im_userlist">
            联系人
        </div>
    </div>
    <div id="lr_im_msglist" class="lr-im-content lr-im-msglist active">
        <div class="lr-im-msg-list" id="lr_immsg_userlist">
        </div>
    </div>
    <div id="lr_im_userlist" class="lr-im-content lr-im-userlist">
        <div class="lr-im-search">
            <i class="fa fa-search"></i>
            <input type="text" placeholder="搜索（Enter回车）">
        </div>
        <div class="lr-im-content-userlist" id="lr_im_content_userlist">

        </div>
    </div>
</div>

<div class="lr-im-black-overlay">
    <div class="lr-im-dialog">
        <div class="lr-im-header">
            <span class="im-title"></span>
            <div class="im-close">
                <i class="fa fa-close"></i>
            </div>
        </div>
        <div class="lr-im-msgcontent">
        </div>
        <div class="lr-im-msgcontent-tool"><span id="lr_im_look_msg_btn">查看消息记录</span></div>
        <div class="lr-im-input">
            <textarea id="lr_im_input" type="text" class="inp"></textarea>
        </div>
    </div>
</div>
<script>
    var bootstrap = function(a, h) {
        var i = {
            init: function() {
                var m = a(".lr-frame-menu");
                m.append('<div class="lr-second-menu-wrap" id="lr_second_menu_wrap"></div><div class="lr-frame-menu-overlay" id="lr_frame_menu_overlay"></div>');
                this.load();
                this.bind()
            },
            load: function() {
                var B = h.clientdata.get(["modulesTree"]);
                var C = "0";
                var A = B[C] || [];
                var p = a('<ul class="lr-first-menu-list"></ul>');
                for (var u = 0, x = A.length; u < x; u++) {
                    var v = A[u];
                    if (v.isMenu == 1) {
                        var n = a("<ul></ul>");
                        if (v.target != "expand") {
                            n.append(i.getAppItem(v))
                        }
                        var o = a("<li></li>");
                        if (!!v.description) {
                            o.attr("title", v.description)
                        }
                        var z = '<a id="' + v.moduleId + '" href="javascript:void(0);" class="lr-menu-item">';
                        z += '<i class="' + v.icon + ' lr-menu-item-icon"></i>';
                        z += '<span class="lr-menu-item-text">' + v.fullName + "</span>";
                        z += '<span class="lr-menu-item-arrow"></span></a>';
                        o.append(z);
                        var G = B[v.moduleId] || [];
                        var r = a('<ul class="lr-second-menu-list"></ul>');
                        var F = false;
                        for (var w = 0, H = G.length; w < H; w++) {
                            var D = G[w];
                            if (D.isMenu == 1) {
                                if (D.target != "expand") {
                                    n.append(i.getAppItem(D))
                                }
                                F = true;
                                var q = a("<li></li>");
                                if (!!D.description) {
                                    q.attr("title", D.description)
                                }
                                var E = '<a id="' + D.moduleId + '" href="javascript:void(0);" class="lr-menu-item" >';
                                E += '<i class="' + D.icon + ' lr-menu-item-icon"></i>';
                                E += '<span class="lr-menu-item-text">' + D.fullName + "</span>";
                                E += "</a>";
                                q.append(E);
                                var L = B[D.moduleId] || [];
                                var t = a('<ul class="lr-three-menu-list"></ul>');
                                var K = false;
                                for (var y = 0, M = L.length; y < M; y++) {
                                    var I = L[y];
                                    if (I.isMenu == 1) {
                                        if (I.target != "expand") {
                                            n.append(i.getAppItem(I))
                                        }
                                        K = true;
                                        var s = a("<li></li>");
                                        s.attr("title", I.fullName);
                                        var J = '<a id="' + I.moduleId + '" href="javascript:void(0);" class="lr-menu-item" >';
                                        J += '<i class="' + I.icon + ' lr-menu-item-icon"></i>';
                                        J += '<span class="lr-menu-item-text">' + I.fullName + "</span>";
                                        J += "</a>";
                                        s.append(J);
                                        t.append(s)
                                    }
                                }
                                if (K) {
                                    q.addClass("lr-meun-had");
                                    q.find("a").append('<span class="lr-menu-item-arrow"><i class="fa fa-angle-left"></i></span>');
                                    q.append(t)
                                }
                                r.append(q)
                            }
                        }
                        if (F) {
                            r.attr("data-value", v.moduleId);
                            a("#lr_second_menu_wrap").append(r)
                        }
                        p.append(o);
                        if (n.find("li").length > 0) {
                            a("#lr_applist_slidebox").append(n);
                            a(".lr-applist-slidebox-slider-content").append('<li><i class="fa fa-circle"></i></li>')
                        }
                    }
                }
                a("#lr_frame_menu").html(p);
                a(".lr-menu-item-text").each(function() {
                    var m = a(this);
                    var N = m.text();
                    h.language.get(N, function(O) {
                        m.text(O);
                        m.parent().parent().attr("title", O)
                    })
                });
                a(".icon-text").each(function() {
                    var m = a(this);
                    var N = m.text() || "";
                    h.language.get(N.replace(/^\s+|\s+$/g, ""), function(O) {
                        m.text(O)
                    })
                })
            },
            bind: function() {
                a("#lr_frame_menu").lrscroll();
                a("#lr_second_menu_wrap").lrscroll();
                a("#lr_windows_start").on("click", i.startMenuClick);
                a("#lr_frame_menu_overlay").on("click", i.startMenuClick);
                a("#lr_frame_menu a").on("click", function() {
                    var n = a(this);
                    var p = n.attr("id");
                    var o = h.clientdata.get(["modulesMap", p]);
                    switch (o.target) {
                        case "iframe":
                            i.startMenuClick();
                            setTimeout(function() {
                                if (h.validator.isNotNull(o.urlAddress).code) {
                                    h.frameTab.open(o)
                                } else {}
                            }, 250);
                            break;
                        case "expand":
                            var m = n.parent();
                            if (!m.hasClass("active")) {
                                a("#lr_frame_menu li.active").removeClass("active");
                                m.addClass("active");
                                a("#lr_second_menu_wrap .lr-second-menu-list").hide();
                                a('#lr_second_menu_wrap .lr-second-menu-list[data-value="' + o.moduleId + '"]').show()
                            }
                            break
                    }
                });
                a("#lr_second_menu_wrap a").on("click", function() {
                    var m = a(this);
                    var p = m.attr("id");
                    var o = h.clientdata.get(["modulesMap", p]);
                    switch (o.target) {
                        case "iframe":
                            i.startMenuClick();
                            setTimeout(function() {
                                if (h.validator.isNotNull(o.urlAddress).code) {
                                    h.frameTab.open(o)
                                } else {}
                            }, 250);
                            break;
                        case "expand":
                            var n = m.next();
                            if (n.is(":visible")) {
                                n.slideUp(500, function() {
                                    m.removeClass("open")
                                })
                            } else {
                                n.parents(".lr-second-menu-list").find(".lr-three-menu-list").slideUp(300, function() {
                                    a(this).prev().removeClass("open")
                                });
                                n.slideDown(300, function() {
                                    m.addClass("open")
                                })
                            }
                            break
                    }
                });
                a(".lr-first-menu-list>li").eq(0).find("a").trigger("click");
                a(".lr-applist-slidebox-slider-content li").click(function() {
                    var n = a(this);
                    if (!n.hasClass("active")) {
                        var m = a(".lr-applist-slidebox-slider-content li.active");
                        m.removeClass("active");
                        n.addClass("active");
                        var p = m.index();
                        var o = a(this).index();
                        a("#lr_applist_slidebox ul").eq(p).hide();
                        a("#lr_applist_slidebox ul").eq(o).fadeIn("slow")
                    }
                });
                a("#lr_applist_btn").on("click", function() {
                    i.openApplist()
                });
                a("#lr_applist_slidebox .appItem").on("click", function() {
                    var m = a(this);
                    var o = m.attr("data-id");
                    var n = h.clientdata.get(["modulesMap", o]);
                    if (h.validator.isNotNull(n.urlAddress).code) {
                        h.frameTab.open(n)
                    }
                });
                a("#lr_applist_content").hide();
                a(".lr-applist-slidebox-slider-content li").eq(0).trigger("click")
            },
            startMenuClick: function() {
                var m = a(".lr-frame-menu");
                if (m.is(":visible")) {
                    m.slideUp(300)
                } else {
                    m.show()
                }
            },
            getAppItem: function(o) {
                var n = Math.round(Math.random() * 9 + 1);
                var m = "";
                m += '<li class="appItem" data-id="' + o.moduleId + '" href="' + o.urlAddress + '">';
                m += '<div class="icon" >';
                m += '<i class="fa ' + o.icon + '"></i>';
                m += "</div>";
                m += '<div class="icon-text">';
                m += o.fullName;
                m += "</div>";
                m += "</li>";
                return m
            },
            closeApplist: function() {
                var m = a("#lr_applist_btn");
                if (!m.hasClass("off")) {
                    a("#lr_applist_btn").addClass("off");
                    a("#lr_applist_content").hide()
                }
            },
            openApplist: function() {
                var m = a("#lr_applist_btn");
                if (m.hasClass("off")) {
                    h.frameTab.leaveFocus();
                    a("#lr_applist_btn").removeClass("off");
                    a("#lr_applist_content").show()
                }
            }
        };
        h.frameTab.opencallback = function() {
            i.closeApplist()
        };
        h.frameTab.closecallback = function() {
            if (h.frameTab.iframeId == "") {
                i.openApplist()
            }
        };
        i.init();
        var b = {};
        var c = {};
        var l = {};
        var g = "";
        var d = function(n) {
            var m = top.$.rootUrl;
            switch (n.img) {
                case "0":
                    m += "/Content/images/head/on-girl.jpg";
                    break;
                case "1":
                    m += "/Content/images/head/on-boy.jpg";
                    break;
                default:
                    m += "/LR_OrganizationModule/User/GetImg?userId=" + n.id;
                    break
            }
            return m
        };
        var k = function(n, o) {
            var m = h.clientdata.get(["userinfo"]);
            h.clientdata.getAsync("user", {
                key: m.userId,
                callback: function(q, r) {
                    q.id = r.key;
                    var p = '                <div class="me im-time">' + (o || "") + '</div>                <div class="im-me">                    <div class="headimg"><img src="' + d(q) + '"></div>                    <div class="arrow"></div>                    <span class="content">' + n + "</span>                </div>";
                    a(".lr-im-msgcontent .lr-scroll-box").append(p);
                    a(".lr-im-msgcontent").lrscrollSet("moveBottom")
                }
            })
        };
        var j = function(o, m, n) {
            h.clientdata.getAsync("user", {
                key: o,
                callback: function(q, r) {
                    q.id = r.key;
                    var p = '                <div class="im-time">' + (n || "") + '</div>                <div class="im-other">                    <div class="headimg"><img src="' + d(q) + '"></div>                    <div class="arrow"></div>                    <span class="content">' + m + "</span>                </div>";
                    a(".lr-im-msgcontent .lr-scroll-box").append(p);
                    a(".lr-im-msgcontent").lrscrollSet("moveBottom")
                }
            })
        };
        var e = function(o) {
            var n = new Date();
            var m = n.DateDiff("d", o);
            if (m <= 1) {
                return h.formatDate(o, "hh:mm:ss")
            } else {
                return h.formatDate(o, "yyyy/MM/dd")
            }
        };
        var f = {
            init: function() {
                this.bind();
                this.load()
            },
            load: function() {
                h.clientdata.getAllAsync("company", {
                    callback: function(n) {
                        a.each(n, function(o, p) {
                            b[p.parentId] = b[p.parentId] || [];
                            p.id = o;
                            b[p.parentId].push(p)
                        });
                        var m = a("#lr_im_content_userlist .lr-scroll-box");
                        a.each(b["0"], function(p, q) {
                            var o = '                            <div class="lr-im-company-item">                                <div class="lr-im-item-name lr-im-company" data-value="' + q.id + '"  data-deep="0" >                                    <i class="fa fa-angle-right"></i>' + q.name + "                                </div>                            </div>";
                            m.append(o)
                        });
                        h.clientdata.getAllAsync("department", {
                            callback: function(o) {
                                a.each(o, function(p, q) {
                                    q.id = p;
                                    if (q.parentId == "0") {
                                        c[q.companyId] = c[q.companyId] || [];
                                        c[q.companyId].push(q)
                                    } else {
                                        c[q.parentId] = c[q.parentId] || [];
                                        c[q.parentId].push(q)
                                    }
                                });
                                h.clientdata.getAllAsync("user", {
                                    callback: function(p) {
                                        a.each(p, function(q, r) {
                                            r.id = q;
                                            if (r.departmentId) {
                                                l[r.departmentId] = l[r.departmentId] || [];
                                                l[r.departmentId].push(r)
                                            } else {
                                                if (r.companyId) {
                                                    l[r.companyId] = l[r.companyId] || [];
                                                    l[r.companyId].push(r)
                                                }
                                            }
                                        })
                                        // h.im.getContacts(function(r) {
                                        //     var q = a("#lr_immsg_userlist .lr-scroll-box");
                                        //     a.each(r, function(s, t) {
                                        //         var u = '                                            <div class="msg-item' + (t.F_IsRead == "1" ? "imHasMsg" : "") + '" data-value="' + t.F_OtherUserId + '" >                                                <div class="photo">                                                    <img src="' + top.$.rootUrl + '/Content/images/head/on-boy.jpg">                                                    <div class="point"></div>                                                </div>                                                <div class="name"></div>                                                <div class="msg">' + (t.F_Content || "") + '</div>                                                <div class="date">' + e(t.F_Time) + "</div>                                            </div>";
                                        //         q.append(u);
                                        //         h.clientdata.getAsync("user", {
                                        //             key: t.F_OtherUserId,
                                        //             callback: function(w, x) {
                                        //                 var v = q.find('[data-value="' + x.key + '"]');
                                        //                 v.find(".name").text(w.name);
                                        //                 w.id = x.key;
                                        //                 v.find("img").attr("src", d(w));
                                        //                 v = null
                                        //             }
                                        //         })
                                        //     })
                                        // })
                                    }
                                })
                            }
                        })
                    }
                })
            },
            bind: function() {
                a("#lr_immsg_userlist").lrscroll();
                a("#lr_im_content_userlist").lrscroll();
                a(".lr-im-msgcontent").lrscroll();
                a(".lr-im-bell").on("click", function() {
                    var m = a(this);
                    if (m.hasClass("open")) {
                        m.removeClass("open");
                        a(".lr-im-body").removeClass("open");
                        a(".lr-im-black-overlay").hide();
                        g = ""
                    } else {
                        m.addClass("open");
                        a(".lr-im-bell .point").hide();
                        a(".lr-im-body").addClass("open")
                    }
                });
                a(".lr-im-title .title-item").on("click", function() {
                    var m = a(this);
                    if (!m.hasClass("active")) {
                        a(".lr-im-body>.active").removeClass("active");
                        a(".lr-im-title>.active").removeClass("active");
                        m.addClass("active");
                        var n = m.attr("data-value");
                        a("#" + n).addClass("active")
                    }
                });
                // a("#lr_im_content_userlist .lr-scroll-box").on("click", function(s) {
                //     s = s || window.event;
                //     var t = s.target || s.srcElement;
                //     var m = a(t);
                //     if (t.tagName == "IMG" || t.tagName == "I") {
                //         m = m.parent()
                //     }
                //     if (m.hasClass("lr-im-company")) {
                //         if (m.hasClass("open")) {
                //             m.removeClass("open");
                //             m.parent().find(".lr-im-user-list").remove()
                //         } else {
                //             var v = m.attr("data-value");
                //             var r = parseInt(m.attr("data-deep"));
                //             var n = a('<div class="lr-im-user-list" ></div>');
                //             n.css({
                //                 "padding-left": "10px"
                //             });
                //             var u = false;
                //             a.each(l[v] || [], function(y, z) {
                //                 var x = '                            <div class="lr-im-company-item">                                <div class="lr-im-item-name lr-im-user" data-value="' + z.id + '" >                                     <img src="' + d(z) + '" >' + z.name + "                                </div>                            </div>";
                //                 n.append(x);
                //                 u = true
                //             });
                //             a.each(c[v] || [], function(y, z) {
                //                 var x = '                            <div class="lr-im-company-item">                                <div class="lr-im-item-name lr-im-department" data-value="' + z.id + '"  data-deep="' + (r + 1) + '" >                                    <i class="fa fa-angle-right"></i>' + z.name + "                                </div>                            </div>";
                //                 n.append(x);
                //                 u = true
                //             });
                //             a.each(b[v] || [], function(y, z) {
                //                 var x = '                            <div class="lr-im-company-item">                                <div class="lr-im-item-name lr-im-company" data-value="' + z.id + '"  data-deep="' + (r + 1) + '" >                                    <i class="fa fa-angle-right"></i>' + z.name + "                                </div>                            </div>";
                //                 n.append(x);
                //                 u = true
                //             });
                //             if (u) {
                //                 m.parent().append(n)
                //             }
                //             m.addClass("open")
                //         }
                //         return false
                //     } else {
                //         if (m.hasClass("lr-im-department")) {
                //             if (m.hasClass("open")) {
                //                 m.removeClass("open");
                //                 m.parent().find(".lr-im-user-list").remove()
                //             } else {
                //                 var v = m.attr("data-value");
                //                 var r = parseInt(m.attr("data-deep"));
                //                 var n = a('<div class="lr-im-user-list" ></div>');
                //                 n.css({
                //                     "padding-left": "10px"
                //                 });
                //                 var u = false;
                //                 a.each(l[v] || [], function(y, z) {
                //                     var x = '                            <div class="lr-im-company-item">                                <div class="lr-im-item-name lr-im-user" data-value="' + z.id + '" >                                     <img src="' + d(z) + '" >' + z.name + "                                </div>                            </div>";
                //                     n.append(x);
                //                     u = true
                //                 });
                //                 a.each(c[v] || [], function(y, z) {
                //                     var x = '                            <div class="lr-im-company-item">                                <div class="lr-im-item-name lr-im-department" data-value="' + z.id + '"  data-deep="' + (r + 1) + '" >                                    <i class="fa fa-angle-right"></i>' + z.name + "                                </div>                            </div>";
                //                     n.append(x);
                //                     u = true
                //                 });
                //                 if (u) {
                //                     m.parent().append(n)
                //                 }
                //                 m.addClass("open")
                //             }
                //         } else {
                //             if (m.hasClass("lr-im-user")) {
                //                 var v = m.attr("data-value");
                //                 var p = a("#lr_immsg_userlist .lr-scroll-box");
                //                 var o = p.find('[data-value="' + v + '"]');
                //                 a(".lr-im-title .title-item").eq(0).trigger("click");
                //                 g = v;
                //                 if (o.length > 0) {
                //                     p.prepend(o);
                //                     o.trigger("click")
                //                 } else {
                //                     var w = m.find("img").attr("src");
                //                     var q = '                            <div class="msg-item" data-value="' + v + '" >                                <div class="photo">                                    <img src="' + w + '">                                    <div class="point"></div>                                </div>                                <div class="name"></div>                                <div class="msg"></div>                                <div class="date"></div>                            </div>';
                //                     p.prepend(q);
                //                     o = p.find('[data-value="' + v + '"]');
                //                     h.clientdata.getAsync("user", {
                //                         key: v,
                //                         callback: function(x, y) {
                //                             p.find('[data-value="' + y.key + '"] .name').text(x.name);
                //                             o.trigger("click")
                //                         }
                //                     });
                //                     h.im.addContacts(v)
                //                 }
                //             }
                //         }
                //     }
                // });
                // a("#lr_immsg_userlist .lr-scroll-box").on("click", function(o) {
                //     o = o || window.event;
                //     var p = o.target || o.srcElement;
                //     var m = a(p);
                //     if (!m.hasClass("msg-item")) {
                //         m = m.parents(".msg-item")
                //     }
                //     if (m.length > 0) {
                //         if (!m.hasClass("active")) {
                //             var q = m.find(".name").text();
                //             g = m.attr("data-value");
                //             a("#lr_immsg_userlist .lr-scroll-box .active").removeClass("active");
                //             m.addClass("active");
                //             a(".lr-im-black-overlay").show();
                //             var n = a(".lr-im-dialog");
                //             n.find(".im-title").text("与" + q + "对话中");
                //             a("#lr_im_input").val("");
                //             a("#lr_im_input").select();
                //             a(".lr-im-msgcontent .lr-scroll-box").html("");
                //             h.im.getMsgList(g, function(s) {
                //                 var u = s.length;
                //                 if (u > 0) {
                //                     for (var t = u - 1; t >= 0; t--) {
                //                         var r = s[t];
                //                         h.clientdata.getAsync("user", {
                //                             key: r.userId,
                //                             msg: r.content,
                //                             time: r.time,
                //                             callback: function(w, y) {
                //                                 w.id = y.key;
                //                                 var x = h.clientdata.get(["userinfo"]);
                //                                 var v = '                                            <div class="im-time ' + (x.userId == y.key ? "me" : "") + ' ">' + y.time + '</div>                                            <div class="' + (x.userId == y.key ? "im-me" : "im-other") + '">                                                <div class="headimg"><img src="' + d(w) + '"></div>                                                <div class="arrow"></div>                                                <span class="content">' + y.msg + "</span>                                            </div>";
                //                                 a(".lr-im-msgcontent .lr-scroll-box").prepend(v)
                //                             }
                //                         })
                //                     }
                //                     a(".lr-im-msgcontent").lrscrollSet("moveBottom")
                //                 }
                //             }, m.hasClass("imHasMsg"));
                //             m.removeClass("imHasMsg");
                //             h.im.updateContacts(g)
                //         }
                //     }
                // });
                // a(".lr-im-search input").on("keypress", function(o) {
                //     o = o || window.event;
                //     if (o.keyCode == "13") {
                //         var n = a(this);
                //         var p = n.val();
                //         var m = a("#lr_im_content_userlist .lr-scroll-box");
                //         m.html("");
                //         if (p) {
                //             h.clientdata.getAllAsync("user", {
                //                 callback: function(q) {
                //                     a.each(q, function(s, t) {
                //                         if (t.name.indexOf(p) != -1) {
                //                             t.id = s;
                //                             var r = '                                        <div class="lr-im-company-item">                                            <div class="lr-im-item-name lr-im-user" data-value="' + t.id + '" >                                                 <img src="' + d(t) + '" >' + t.name + "                                            </div>                                        </div>";
                //                             m.append(r)
                //                         }
                //                     })
                //                 }
                //             })
                //         } else {
                //             a.each(b["0"], function(r, s) {
                //                 var q = '                            <div class="lr-im-company-item">                                <div class="lr-im-item-name lr-im-company" data-value="' + s.id + '"  data-deep="0" >                                    <i class="fa fa-angle-right"></i>' + s.name + "                                </div>                            </div>";
                //                 m.append(q)
                //             })
                //         }
                //     }
                // });
                // a("#lr_im_input").on("keypress", function(n) {
                //     n = n || window.event;
                //     if (n.keyCode == "13") {
                //         var o = a(this).val();
                //         a(this).val("");
                //         if (o.replace(/(^\s*)|(\s*$)/g, "") != "") {
                //             var p = h.im.sendMsg(g, o);
                //             k(o, p);
                //             var m = a('#lr_immsg_userlist .lr-scroll-box [data-value="' + g + '"]');
                //             m.find(".msg").text(o);
                //             m.find(".date").text(e(h.getDate("yyyy-MM-dd hh:mm:ss")));
                //             m = null
                //         }
                //         return false
                //     }
                // });
                // h.im.registerRevMsg(function(r, q, o) {
                //     var n = a("#lr_immsg_userlist .lr-scroll-box");
                //     var m = n.find('[data-value="' + r + '"]');
                //     if (r == g) {
                //         j(r, q, o);
                //         h.im.updateContacts(r);
                //         m.find(".msg").text(q);
                //         m.find(".date").text(e(o))
                //     } else {
                //         if (m.length > 0) {
                //             n.prepend(m);
                //             if (!m.hasClass("imHasMsg")) {
                //                 m.addClass("imHasMsg")
                //             }
                //             m.find(".msg").text(q);
                //             m.find(".date").text(e(o))
                //         } else {
                //             var p = '                            <div class="msg-item" data-value="' + r + '" >                                <div class="photo">                                    <img src="' + top.$.rootUrl + '/Content/images/head/on-boy.jpg">                                    <div class="point"></div>                                </div>                                <div class="name"></div>                                <div class="msg">' + q + '</div>                                <div class="date">' + e(o) + "</div>                            </div>";
                //             n.prepend(p);
                //             h.clientdata.getAsync("user", {
                //                 key: r,
                //                 callback: function(t, u) {
                //                     var s = n.find('[data-value="' + u.key + '"]');
                //                     s.find(".name").text(t.name);
                //                     t.id = u.key;
                //                     s.find("img").attr("src", d(t));
                //                     s = null
                //                 }
                //             })
                //         }
                //     }
                //     if (!a(".lr-im-bell").hasClass("open")) {
                //         a(".lr-im-bell .point").show()
                //     }
                // });
                // a("#lr_im_look_msg_btn").on("click", function() {
                //     h.layerForm({
                //         id: "LookMsgIndex",
                //         title: "查看聊天记录-" + a("#lr_im_msglist .lr-im-right .lr-im-touser").text(),
                //         url: top.$.rootUrl + "/LR_IM/IMMsg/Index?userId=" + g,
                //         width: 800,
                //         height: 500,
                //         maxmin: true,
                //         btn: null
                //     })
                // });
                a(".im-close").on("click", function() {
                    a('#lr_immsg_userlist .lr-scroll-box [data-value="' + g + '"]').removeClass("active");
                    a(".lr-im-black-overlay").hide();
                    g = ""
                })
            }
        };
        f.init()
    };
</script>


<div class="lr-frame-menu">
    <div class="lr-frame-menu-wrap" id="lr_frame_menu"></div>
</div>
<div class="lr-frame-tabs">
    <div class="lr-frame-tabs-wrap">
        <ul id="lr_frame_tabs_ul"></ul>
    </div>
</div>
<div class="lr-frame-main" id="lr_frame_main">
    <img src="Content/images/iframebg.png" />
</div>


<script src="Content/bootstrap/bootstrap.min.js"></script>
<script src="Content/jquery/plugin/layer/layer.js"></script>
<script src="Content/jquery/plugin/jquery.cookie.min.js"></script>
<script src="Content/jquery/jquery.md5.min.js"></script>
<script src="Content/jquery/plugin/toastr/toastr.min.js"></script>

<script>
    $.rootUrl = ''.substr(0, ''.length - 1);
</script>
<script>
    (function(l, t, o) {
        var m = l([]),
            q = l.resize = l.extend(l.resize, {}),
            u, w = "setTimeout",
            v = "resize",
            p = v + "-special-event",
            n = "delay",
            r = "throttleWindow";
        q[n] = 250;
        q[r] = true;
        l.event.special[v] = {
            setup: function() {
                if (!q[r] && this[w]) {
                    return false
                }
                var a = l(this);
                m = m.add(a);
                l.data(this, p, {
                    w: a.width(),
                    h: a.height()
                });
                if (m.length === 1) {
                    s()
                }
            },
            teardown: function() {
                if (!q[r] && this[w]) {
                    return false
                }
                var a = l(this);
                m = m.not(a);
                a.removeData(p);
                if (!m.length) {
                    clearTimeout(u)
                }
            },
            add: function(a) {
                if (!q[r] && this[w]) {
                    return false
                }
                var c;

                function b(h, d, e) {
                    var f = l(this),
                        g = l.data(this, p);
                    g.w = d !== o ? d : f.width();
                    g.h = e !== o ? e : f.height();
                    c.apply(this, arguments)
                }
                if (l.isFunction(a)) {
                    c = a;
                    return b
                } else {
                    c = a.handler;
                    a.handler = b
                }
            }
        };

        function s() {
            u = t[w](function() {
                m.each(function() {
                    var c = l(this),
                        b = c.width(),
                        a = c.height(),
                        d = l.data(this, p);
                    if (b !== d.w || a !== d.h) {
                        c.trigger(v, [d.w = b, d.h = a])
                    }
                });
                s()
            }, q[n])
        }
    })(jQuery, this);
    (function(a) {
        var l = ["wheel", "mousewheel", "DOMMouseScroll", "MozMousePixelScroll"],
            k = ("onwheel" in document || document.documentMode >= 9) ? ["wheel"] : ["mousewheel", "DomMouseScroll", "MozMousePixelScroll"],
            h = Array.prototype.slice,
            f, d;
        if (a.event.fixHooks) {
            for (var c = l.length; c;) {
                a.event.fixHooks[l[--c]] = a.event.mouseHooks
            }
        }
        var j = a.event.special.mousewheel = {
            setup: function() {
                if (this.addEventListener) {
                    for (var m = k.length; m;) {
                        this.addEventListener(k[--m], b, false)
                    }
                } else {
                    this.onmousewheel = b
                }
                a.data(this, "mousewheel-line-height", j.getLineHeight(this));
                a.data(this, "mousewheel-page-height", j.getPageHeight(this))
            },
            teardown: function() {
                if (this.removeEventListener) {
                    for (var m = k.length; m;) {
                        this.removeEventListener(k[--m], b, false)
                    }
                } else {
                    this.onmousewheel = null
                }
            },
            getLineHeight: function(i) {
                return parseInt(a(i)["offsetParent" in a.fn ? "offsetParent" : "parent"]().css("fontSize"), 10)
            },
            getPageHeight: function(i) {
                return a(i).height()
            },
            settings: {
                adjustOldDeltas: true
            }
        };
        a.fn.extend({
            mousewheel: function(i) {
                return i ? this.bind("mousewheel", i) : this.trigger("mousewheel")
            },
            unmousewheel: function(i) {
                return this.unbind("mousewheel", i)
            }
        });

        function b(q) {
            var s = q || window.event,
                m = h.call(arguments, 1),
                n = 0,
                o = 0,
                p = 0,
                i = 0;
            q = a.event.fix(s);
            q.type = "mousewheel";
            if ("detail" in s) {
                p = s.detail * -1
            }
            if ("wheelDelta" in s) {
                p = s.wheelDelta
            }
            if ("wheelDeltaY" in s) {
                p = s.wheelDeltaY
            }
            if ("wheelDeltaX" in s) {
                o = s.wheelDeltaX * -1
            }
            if ("axis" in s && s.axis === s.HORIZONTAL_AXIS) {
                o = p * -1;
                p = 0
            }
            n = p === 0 ? o : p;
            if ("deltaY" in s) {
                p = s.deltaY * -1;
                n = p
            }
            if ("deltaX" in s) {
                o = s.deltaX;
                if (p === 0) {
                    n = o * -1
                }
            }
            if (p === 0 && o === 0) {
                return
            }
            if (s.deltaMode === 1) {
                var r = a.data(this, "mousewheel-line-height");
                n *= r;
                p *= r;
                o *= r
            } else {
                if (s.deltaMode === 2) {
                    var t = a.data(this, "mousewheel-page-height");
                    n *= t;
                    p *= t;
                    o *= t
                }
            }
            i = Math.max(Math.abs(p), Math.abs(o));
            if (!d || i < d) {
                d = i;
                if (g(s, i)) {
                    d /= 40
                }
            }
            if (g(s, i)) {
                n /= 40;
                o /= 40;
                p /= 40
            }
            n = Math[n >= 1 ? "floor" : "ceil"](n / d);
            o = Math[o >= 1 ? "floor" : "ceil"](o / d);
            p = Math[p >= 1 ? "floor" : "ceil"](p / d);
            q.deltaX = o;
            q.deltaY = p;
            q.deltaFactor = d;
            q.deltaMode = 0;
            m.unshift(q, n, o, p);
            if (f) {
                clearTimeout(f)
            }
            f = setTimeout(e, 200);
            return (a.event.dispatch || a.event.handle).apply(this, m)
        }

        function e() {
            d = null
        }

        function g(m, i) {
            return j.settings.adjustOldDeltas && m.type === "mousewheel" && i % 120 === 0
        }
    })(window.jQuery);
    top.learun = (function($) {
        var learun = {
            isDebug: true,
            log: function() {
                if (learun.isDebug) {
                    console.log("=====>" + new Date().getTime() + "<=====");
                    var len = arguments.length;
                    for (var i = 0; i < len; i++) {
                        console.log(arguments[i])
                    }
                }
            },
            newGuid: function() {
                var guid = "";
                for (var i = 1; i <= 32; i++) {
                    var n = Math.floor(Math.random() * 16).toString(16);
                    guid += n;
                    if ((i == 8) || (i == 12) || (i == 16) || (i == 20)) {
                        guid += "-"
                    }
                }
                return guid
            },
            loading: function(isShow, _text) {
                var $loading = top.$("#lr_loading_bar");
                if (!!_text) {
                    top.learun.language.get(_text, function(text) {
                        top.$("#lr_loading_bar_message").html(text)
                    })
                } else {
                    top.learun.language.get("正在拼了命为您加载…", function(text) {
                        top.$("#lr_loading_bar_message").html(text)
                    })
                }
                if (isShow) {
                    $loading.show()
                } else {
                    $loading.hide()
                }
            },
            loadStyles: function(url) {
                var link = document.createElement("link");
                link.type = "text/css";
                link.rel = "stylesheet";
                link.href = url;
                document.getElementsByTagName("head")[0].appendChild(link)
            },
            iframe: function(Id, _frames) {
                if (_frames[Id] != undefined) {
                    if (_frames[Id].contentWindow != undefined) {
                        return _frames[Id].contentWindow
                    } else {
                        return _frames[Id]
                    }
                } else {
                    return null
                }
            },
            changeUrlParam: function(url, key, value) {
                var newUrl = "";
                var reg = new RegExp("(^|)" + key + "=([^&]*)(|$)");
                var tmp = key + "=" + value;
                if (url.match(reg) != null) {
                    newUrl = url.replace(eval(reg), tmp)
                } else {
                    if (url.match("[?]")) {
                        newUrl = url + "&" + tmp
                    } else {
                        newUrl = url + "?" + tmp
                    }
                }
                return newUrl
            },
            toDecimal: function(num) {
                if (num == null) {
                    num = "0"
                }
                num = num.toString().replace(/\$|\,/g, "");
                if (isNaN(num)) {
                    num = "0"
                }
                var sign = (num == (num = Math.abs(num)));
                num = Math.floor(num * 100 + 0.50000000001);
                var cents = num % 100;
                num = Math.floor(num / 100).toString();
                if (cents < 10) {
                    cents = "0" + cents
                }
                for (var i = 0; i < Math.floor((num.length - (1 + i)) / 3); i++) {
                    num = num.substring(0, num.length - (4 * i + 3)) + "" + num.substring(num.length - (4 * i + 3))
                }
                return (((sign) ? "" : "-") + num + "." + cents)
            },
            countFileSize: function(size) {
                if (size < 1024) {
                    return learun.toDecimal(size) + " 字节"
                } else {
                    if (size >= 1024 && size < 1048576) {
                        return learun.toDecimal(size / 1024) + " KB"
                    } else {
                        if (size >= 1048576 && size < 1073741824) {
                            return learun.toDecimal(size / 1024 / 1024) + " MB"
                        } else {
                            if (size >= 1073741824) {
                                return learun.toDecimal(size / 1024 / 1024 / 1024) + " GB"
                            }
                        }
                    }
                }
            },
            arrayCopy: function(data) {
                return $.map(data, function(obj) {
                    return $.extend(true, {}, obj)
                })
            },
            checkrow: function(id) {
                var isOK = true;
                if (id == undefined || id == "" || id == "null" || id == "undefined") {
                    isOK = false;
                    top.learun.language.get("您没有选中任何数据项,请选中后再操作！", function(text) {
                        learun.alert.warning(text)
                    })
                }
                return isOK
            },
            alert: {
                success: function(msg) {
                    top.learun.language.get(msg, function(text) {
                        toastr.success(text)
                    })
                },
                info: function(msg) {
                    top.learun.language.get(msg, function(text) {
                        toastr.info(text)
                    })
                },
                warning: function(msg) {
                    top.learun.language.get(msg, function(text) {
                        toastr.warning(text)
                    })
                },
                error: function(msg) {
                    top.learun.language.get(msg, function(text) {
                        toastr.warning(msg)
                    })
                }
            },
            download: function(options) {
                var defaults = {
                    method: "GET",
                    url: "",
                    param: []
                };
                var options = $.extend(defaults, options);
                if (options.url && options.param) {
                    var $form = $('<form action="' + options.url + '" method="' + (options.method || "post") + '"></form>');
                    for (var key in options.param) {
                        var $input = $('<input type="hidden" />').attr("name", key).val(options.param[key]);
                        $form.append($input)
                    }
                    $form.appendTo("body").submit().remove()
                }
            },
            commafy: function(num) {
                if (num == null) {
                    num = "0"
                }
                if (isNaN(num)) {
                    return "0"
                }
                num = num + "";
                if (/^.*\..*$/.test(num)) {
                    varpointIndex = num.lastIndexOf(".");
                    varintPart = num.substring(0, pointIndex);
                    varpointPart = num.substring(pointIndex + 1, num.length);
                    intPart = intPart + "";
                    var re = /(-?\d+)(\d{3})/;
                    while (re.test(intPart)) {
                        intPart = intPart.replace(re, "$1,$2")
                    }
                    num = intPart + "." + pointPart
                } else {
                    num = num + "";
                    var re = /(-?\d+)(\d{3})/;
                    while (re.test(num)) {
                        num = num.replace(re, "$1,$2")
                    }
                }
                return num
            },
            isExistImg: function(pathImg) {
                if (!!pathImg) {
                    var ImgObj = new Image();
                    ImgObj.src = pathImg;
                    if (ImgObj.fileSize > 0 || (ImgObj.width > 0 && ImgObj.height > 0)) {
                        return true
                    } else {
                        return false
                    }
                } else {
                    return false
                }
            }
        };
        return learun
    })(window.jQuery);
    (function(a, c, e) {
        var b = null;
        var d = {
            init: function(j, l) {
                var o = j.attr("id");
                if (!o) {
                    o = "lr_" + c.newGuid();
                    j.attr("id", o)
                }
                j.addClass("lr-scroll-wrap");
                var f = j.children();
                var i = a('<div class="lr-scroll-box" id="' + o + '_box" ></div>');
                j.append(i);
                i.append(f);
                var k = a('<div class="lr-scroll-vertical"   ><div class="lr-scroll-vertical-block" id="' + o + '_vertical"></div></div>');
                j.append(k);
                var g = a('<div class="lr-scroll-horizontal" ><div class="lr-scroll-horizontal-block" id="' + o + '_horizontal"></div></div>');
                j.append(g);
                if (b === null) {
                    b = a('<div style="-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;user-select: none;display: none;position: fixed;top: 0;left: 0;width: 100%;height: 100%;z-index: 9999;cursor: pointer;" ></div>');
                    a("body").append(b)
                }
                var p = i.innerHeight();
                var q = i.innerWidth();
                var n = j.height();
                var r = j.width();
                var m = {
                    id: o,
                    sy: 0,
                    sx: 0,
                    sh: p,
                    sw: q,
                    h: n,
                    w: r,
                    yh: 0,
                    xw: 0,
                    callback: l
                };
                j[0].op = m;
                d.update(j);
                d.bindEvent(j, i, k, g);
                i = null;
                f = null;
                k = null;
                g = null;
                j = null
            },
            bindEvent: function(h, g, i, f) {
                h.resize(function() {
                    var j = a(this);
                    var l = j[0].op;
                    var k = j.height();
                    var m = j.width();
                    if (k != l.h) {
                        l.h = k;
                        d.updateY(j)
                    }
                    if (m != l.w) {
                        l.w = m;
                        d.updateX(j)
                    }
                    j = null
                });
                g.resize(function() {
                    var k = a(this);
                    var j = k.parent();
                    var l = j[0].op;
                    var m = k.innerHeight();
                    var n = k.innerWidth();
                    if (m != l.sh) {
                        l.sh = m;
                        d.updateY(j)
                    }
                    if (n != l.sw) {
                        l.sw = n;
                        d.updateX(j)
                    }
                    k = null;
                    j = null
                });
                h.mousewheel(function(p, m, n, o) {
                    var k = 4 + (Math.abs(m) - 1) * 0.8;
                    var j = a(this);
                    var q = j[0].op;
                    var l = m * k;
                    if (q.sh > q.h) {
                        q.oldsy = q.sy;
                        q.sy = q.sy - l;
                        d.moveY(j, true);
                        j = null;
                        return false
                    } else {
                        if (q.sw > q.w) {
                            q.oldsx = q.sx;
                            q.sx = q.sx - l;
                            d.moveX(j, true);
                            j = null;
                            return false
                        }
                    }
                });
                i.find(".lr-scroll-vertical-block").on("mousedown", function(k) {
                    b.show();
                    var j = a(this).parent().parent();
                    var l = j[0].op;
                    l.isYMousedown = true;
                    l.yMousedown = k.pageY;
                    j.addClass("lr-scroll-active");
                    j = null
                });
                f.find(".lr-scroll-horizontal-block").on("mousedown", function(k) {
                    b.show();
                    var j = a(this).parent().parent();
                    var l = j[0].op;
                    l.isXMousedown = true;
                    l.xMousedown = k.pageX;
                    j.addClass("lr-scroll-active");
                    j = null
                });
                top.$(document).on("mousemove", {
                    $obj: h
                }, function(l) {
                    var m = l.data.$obj[0].op;
                    if (m.isYMousedown) {
                        var o = l.pageY;
                        var k = o - m.yMousedown;
                        m.yMousedown = o;
                        m.oldsy = m.sy;
                        m.blockY = m.blockY + k;
                        if ((m.blockY + m.yh) > m.h) {
                            m.blockY = m.h - m.yh
                        }
                        if (m.blockY < 0) {
                            m.blockY = 0
                        }
                        d.getY(m);
                        d.moveY(l.data.$obj)
                    } else {
                        if (m.isXMousedown) {
                            var m = l.data.$obj[0].op;
                            var n = l.pageX;
                            var j = n - m.xMousedown;
                            m.xMousedown = n;
                            m.oldsx = m.sx;
                            m.blockX = m.blockX + j;
                            if ((m.blockX + m.xw) > m.w) {
                                m.blockX = m.w - m.xw
                            }
                            if (m.blockX < 0) {
                                m.blockX = 0
                            }
                            d.getX(m);
                            d.moveX(l.data.$obj)
                        }
                    }
                }).on("mouseup", {
                    $obj: h
                }, function(j) {
                    j.data.$obj[0].op.isYMousedown = false;
                    j.data.$obj[0].op.isXMousedown = false;
                    b.hide();
                    j.data.$obj.removeClass("lr-scroll-active")
                })
            },
            update: function(f) {
                d.updateY(f);
                d.updateX(f)
            },
            updateY: function(g) {
                var k = g[0].op;
                var f = g.find("#" + k.id + "_box");
                var h = g.find("#" + k.id + "_vertical");
                if (k.sh > k.h) {
                    if ((k.sh - k.sy) < k.h) {
                        var i = 0;
                        k.sy = k.sh - k.h;
                        if (k.sy < 0) {
                            k.sy = 0
                        } else {
                            i = 0 - k.sy
                        }
                        f.css("top", i + "px")
                    }
                    var l = parseInt(k.h * k.h / k.sh);
                    l = (l < 30 ? 30 : l);
                    k.yh = l;
                    var j = parseInt(k.sy * (k.h - l) / (k.sh - k.h));
                    if ((j + l) > k.h) {
                        j = k.h - l
                    }
                    if (j < 0) {
                        j = 0
                    }
                    k.blockY = j;
                    h.css({
                        top: j + "px",
                        height: l + "px"
                    })
                } else {
                    k.blockY = 0;
                    k.sy = 0;
                    f.css("top", "0px");
                    h.css({
                        top: "0px",
                        height: "0px"
                    })
                }
                k.callback && k.callback(k.sx, k.sy);
                f = null;
                h = null
            },
            updateX: function(h) {
                var k = h[0].op;
                var g = h.find("#" + k.id + "_box");
                var f = h.find("#" + k.id + "_horizontal");
                if (k.sw > k.w) {
                    if ((k.sw - k.sx) < k.w) {
                        var i = 0;
                        k.sx = k.sw - k.w;
                        if (k.sx < 0) {
                            k.sx = 0
                        } else {
                            i = 0 - k.sx
                        }
                        g.css("left", i + "px")
                    }
                    var l = parseInt(k.w * k.w / k.sw);
                    l = (l < 30 ? 30 : l);
                    k.xw = l;
                    var j = parseInt(k.sx * (k.w - l) / (k.sw - k.w));
                    if ((j + l) > k.w) {
                        j = k.w - l
                    }
                    if (j < 0) {
                        j = 0
                    }
                    k.blockX = j;
                    f.css({
                        left: j + "px",
                        width: l + "px"
                    })
                } else {
                    k.sx = 0;
                    k.blockX = 0;
                    g.css("left", "0px");
                    f.css({
                        left: "0px",
                        width: "0px"
                    })
                }
                k.callback && k.callback(k.sx, k.sy);
                g = null;
                f = null
            },
            moveY: function(g, k) {
                var l = g[0].op;
                var f = g.find("#" + l.id + "_box");
                var h = g.find("#" + l.id + "_vertical");
                var i = 0;
                if (l.sy < 0) {
                    l.sy = 0
                } else {
                    if (l.sy + l.h > l.sh) {
                        l.sy = l.sh - l.h;
                        i = 0 - l.sy
                    } else {
                        i = 0 - l.sy
                    }
                }
                if (k) {
                    var j = d.getBlockY(l);
                    if (j == 0 && l.sy != 0) {
                        l.sy = 0;
                        i = 0
                    }
                    l.blockY = j;
                    f.css({
                        top: i + "px"
                    });
                    h.css({
                        top: j + "px"
                    })
                } else {
                    f.css({
                        top: i + "px"
                    });
                    h.css({
                        top: l.blockY + "px"
                    })
                }
                l.callback && l.callback(l.sx, l.sy);
                f = null;
                h = null
            },
            moveX: function(h, k) {
                var l = h[0].op;
                var g = h.find("#" + l.id + "_box");
                var f = h.find("#" + l.id + "_horizontal");
                var i = 0;
                if (l.sx < 0) {
                    l.sx = 0
                } else {
                    if (l.sx + l.w > l.sw) {
                        l.sx = l.sw - l.w;
                        i = 0 - l.sx
                    } else {
                        i = 0 - l.sx
                    }
                }
                if (k) {
                    var j = d.getBlockX(l);
                    if (j == 0 && l.sx != 0) {
                        l.sx = 0;
                        i = 0
                    }
                    l.blockX = j;
                    g.css({
                        left: i + "px"
                    });
                    f.css({
                        left: j + "px"
                    })
                } else {
                    g.css({
                        left: i + "px"
                    });
                    f.css({
                        left: l.blockX + "px"
                    })
                }
                l.callback && l.callback(l.sx, l.sy);
                g = null;
                f = null
            },
            getBlockY: function(g) {
                var f = parseFloat(g.sy * (g.h - g.yh) / (g.sh - g.h));
                if ((f + g.yh) > g.h) {
                    f = g.h - g.yh
                }
                if (f < 0) {
                    f = 0
                }
                return f
            },
            getY: function(f) {
                f.sy = parseInt(f.blockY * (f.sh - f.h) / (f.h - f.yh));
                if ((f.sy + f.h) > f.sh) {
                    f.sy = f.sh - f.h
                }
                if (f.sy < 0) {
                    f.sy = 0
                }
            },
            getBlockX: function(g) {
                var f = parseFloat(g.sx * (g.w - g.xw) / (g.sw - g.w));
                if ((f + g.xw) > g.w) {
                    f = g.w - g.xw
                }
                if (f < 0) {
                    f = 0
                }
                return f
            },
            getX: function(f) {
                f.sx = parseInt(f.blockX * (f.sw - f.w) / (f.w - f.xw));
                if ((f.sx + f.w) > f.sw) {
                    f.sx = f.sw - f.w
                }
                if (f.sx < 0) {
                    f.sx = 0
                }
            },
        };
        a.fn.lrscroll = function(f) {
            a(this).each(function() {
                var g = a(this);
                d.init(g, f)
            })
        };
        a.fn.lrscrollSet = function(h, g) {
            switch (h) {
                case "moveRight":
                    var f = a(this);
                    setTimeout(function() {
                        var i = f[0].op;
                        i.oldsx = i.sx;
                        i.sx = i.sw - i.w;
                        d.moveX(f, true);
                        f = null
                    }, 250);
                    break;
                case "moveBottom":
                    var f = a(this);
                    setTimeout(function() {
                        var i = f[0].op;
                        i.oldsy = i.sx;
                        i.sy = i.sh - i.h;
                        d.moveY(f, true);
                        f = null
                    }, 250);
                    break
            }
        }
    })(window.jQuery, top.learun, window);
    (function(a, c) {
        var b = {};
        c.frameTab = {
            iframeId: "",
            init: function() {
                c.frameTab.bind()
            },
            bind: function() {
                a(".lr-frame-tabs-wrap").lrscroll()
            },
            setCurrentIframeId: function(d) {
                c.iframeId = d
            },
            open: function(h, i) {
                var g = a("#lr_frame_tabs_ul");
                var d = a("#lr_frame_main");
                if (b[h.moduleId] == undefined || b[h.moduleId] == null) {
                    if (c.frameTab.iframeId != "") {
                        g.find("#lr_tab_" + c.frameTab.iframeId).removeClass("active");
                        d.find("#lr_iframe_" + c.frameTab.iframeId).removeClass("active");
                        b[c.frameTab.iframeId] = 0
                    }
                    var j = c.frameTab.iframeId;
                    c.frameTab.iframeId = h.moduleId;
                    b[c.frameTab.iframeId] = 1;
                    var f = a('<li class="lr-frame-tabItem active" id="lr_tab_' + h.moduleId + '" parent-id="' + j + '"  ><span>' + h.fullName + "</span></li>");
                    c.language.get(h.fullName, function(m) {
                        f.find("span").text(m);
                        if (!i) {
                            f.append('<span class="reomve" title="关闭窗口"></span>')
                        }
                    });
                    var e = a('<iframe class="lr-frame-iframe active" id="lr_iframe_' + h.moduleId + '" frameborder="0" src="' + a.rootUrl + h.urlAddress + '"></iframe>');
                    g.append(f);
                    d.append(e);
                    var k = 0;
                    var l = g.children().each(function() {
                        k += a(this).outerWidth()
                    });
                    g.css({
                        width: k
                    });
                    g.parent().css({
                        width: k
                    });
                    a(".lr-frame-tabs-wrap").lrscrollSet("moveRight");
                    f.on("click", function() {
                        var m = a(this).attr("id").replace("lr_tab_", "");
                        c.frameTab.focus(m)
                    });
                    f.find(".reomve").on("click", function() {
                        var m = a(this).parent().attr("id").replace("lr_tab_", "");
                        c.frameTab.close(m);
                        return false
                    });
                    if (!!c.frameTab.opencallback) {
                        c.frameTab.opencallback()
                    }
                    if (!i) {
                        a.ajax({
                            url: top.$.rootUrl + "/Home/VisitModule",
                            data: {
                                moduleName: h.fullName,
                                moduleUrl: h.urlAddress
                            },
                            type: "post",
                            dataType: "text"
                        })
                    }
                } else {
                    c.frameTab.focus(h.moduleId)
                }
            },
            focus: function(d) {
                if (b[d] == 0) {
                    a("#lr_tab_" + c.frameTab.iframeId).removeClass("active");
                    a("#lr_iframe_" + c.frameTab.iframeId).removeClass("active");
                    b[c.frameTab.iframeId] = 0;
                    a("#lr_tab_" + d).addClass("active");
                    a("#lr_iframe_" + d).addClass("active");
                    c.frameTab.iframeId = d;
                    b[d] = 1;
                    if (!!c.frameTab.opencallback) {
                        c.frameTab.opencallback()
                    }
                }
            },
            leaveFocus: function() {
                a("#lr_tab_" + c.frameTab.iframeId).removeClass("active");
                a("#lr_iframe_" + c.frameTab.iframeId).removeClass("active");
                b[c.frameTab.iframeId] = 0;
                c.frameTab.iframeId = ""
            },
            close: function(g) {
                delete b[g];
                var f = a("#lr_tab_" + g);
                var d = f.prev();
                if (d.length < 1) {
                    d = f.next()
                }
                f.remove();
                a("#lr_iframe_" + g).remove();
                if (g == c.frameTab.iframeId && d.length > 0) {
                    var h = d.attr("id").replace("lr_tab_", "");
                    d.addClass("active");
                    a("#lr_iframe_" + h).addClass("active");
                    c.frameTab.iframeId = h;
                    b[h] = 1
                } else {
                    if (d.length < 1) {
                        c.frameTab.iframeId = ""
                    }
                }
                var e = a("#lr_frame_tabs_ul");
                var i = 0;
                var j = e.children().each(function() {
                    i += a(this).outerWidth()
                });
                e.css({
                    width: i
                });
                e.parent().css({
                    width: i
                });
                if (!!c.frameTab.closecallback) {
                    c.frameTab.closecallback()
                }
            },
            currentIframe: function() {
                var d = "lr_iframe_" + c.frameTab.iframeId;
                if (top.frames[d].contentWindow != undefined) {
                    return top.frames[d].contentWindow
                } else {
                    return top.frames[d]
                }
            },
            parentIframe: function() {
                var d = "lr_iframe_" + top.$("#lr_tab_" + c.frameTab.iframeId).attr("parent-id");
                if (top.frames[d].contentWindow != undefined) {
                    return top.frames[d].contentWindow
                } else {
                    return top.frames[d]
                }
            },
            opencallback: false,
            closecallback: false
        };
        c.frameTab.init()
    })(window.jQuery, top.learun);
    (function(a, b) {
        a.extend(b, {
            parseDate: function(d) {
                var c;
                if (d.indexOf("/Date(") > -1) {
                    c = new Date(parseInt(d.replace("/Date(", "").replace(")/", ""), 10))
                } else {
                    c = new Date(Date.parse(d.replace(/-/g, "/").replace("T", " ").split(".")[0]))
                }
                return c
            },
            formatDate: function(h, e) {
                if (!h) {
                    return ""
                }
                var c = h;
                if (typeof h === "string") {
                    if (h.indexOf("/Date(") > -1) {
                        c = new Date(parseInt(h.replace("/Date(", "").replace(")/", ""), 10))
                    } else {
                        c = new Date(Date.parse(h.replace(/-/g, "/").replace("T", " ").split(".")[0]))
                    }
                }
                var g = {
                    "M+": c.getMonth() + 1,
                    "d+": c.getDate(),
                    "h+": c.getHours(),
                    "m+": c.getMinutes(),
                    "s+": c.getSeconds(),
                    "q+": Math.floor((c.getMonth() + 3) / 3),
                    S: c.getMilliseconds()
                };
                if (/(y+)/.test(e)) {
                    e = e.replace(RegExp.$1, (c.getFullYear() + "").substr(4 - RegExp.$1.length))
                }
                for (var f in g) {
                    if (new RegExp("(" + f + ")").test(e)) {
                        e = e.replace(RegExp.$1, RegExp.$1.length == 1 ? g[f] : ("00" + g[f]).substr(("" + g[f]).length))
                    }
                }
                return e
            },
            getDate: function(c, g, e) {
                var d = new Date();
                if (!!g) {
                    d = d.DateAdd(g, e)
                }
                var f = b.formatDate(d, c);
                return f
            },
            getMonth: function() {
                var e = {
                    begin: "",
                    end: ""
                };
                var c = b.parseDate(b.formatDate(new Date(), "yyyy-MM-01"));
                var d = c.DateAdd("m", 1).DateAdd("d", -1);
                e.begin = b.formatDate(c, "yyyy-MM-dd 00:00:00");
                e.end = b.formatDate(d, "yyyy-MM-dd 23:59:59");
                return e
            },
            getPreMonth: function() {
                var e = {
                    begin: "",
                    end: ""
                };
                var c = b.parseDate(b.formatDate(new Date(), "yyyy-MM-01"));
                var d = c.DateAdd("d", -1);
                e.begin = b.formatDate(d, "yyyy-MM-01 00:00:00");
                e.end = b.formatDate(d, "yyyy-MM-dd 23:59:59");
                return e
            },
            getCurrentQuarter: function() {
                var c = new Date();
                return b.getQuarter(c.getFullYear(), c.getMonth())
            },
            getPreQuarter: function() {
                var c = new Date().DateAdd("q", -1);
                return b.getQuarter(c.getFullYear(), c.getMonth())
            },
            getQuarter: function(e, c) {
                var d = {
                    begin: "",
                    end: ""
                };
                switch (c) {
                    case 0:
                    case 1:
                    case 2:
                        d.begin = e + "-01-01 00:00:00";
                        d.end = e + "-03-31 23:59:59";
                        break;
                    case 3:
                    case 4:
                    case 5:
                        d.begin = e + "-04-01 00:00:00";
                        d.end = e + "-06-30 23:59:59";
                        break;
                    case 6:
                    case 7:
                    case 8:
                        d.begin = e + "-07-01 00:00:00";
                        d.end = e + "-09-30 23:59:59";
                        break;
                    case 9:
                    case 10:
                    case 11:
                        d.begin = e + "-10-01 00:00:00";
                        d.end = e + "-12-31 23:59:59";
                        break
                }
                return d
            },
            getYear: function() {
                var c = new Date();
                var d = {
                    begin: "",
                    end: ""
                };
                var e = c.getFullYear();
                d.begin = e + "-01-01 00:00:00";
                d.end = e + "-12-31 23:59:59";
                return d
            },
            getPreYear: function() {
                var c = new Date();
                var d = {
                    begin: "",
                    end: ""
                };
                var e = c.getFullYear() - 1;
                d.begin = e + "-01-01 00:00:00";
                d.end = e + "-12-31 23:59:59";
                return d
            },
            getFirstHalfYear: function() {
                var c = new Date();
                var d = {
                    begin: "",
                    end: ""
                };
                var e = c.getFullYear();
                d.begin = e + "-01-01 00:00:00";
                d.end = e + "-06-30 23:59:59";
                return d
            },
            getSecondHalfYear: function() {
                var c = new Date();
                var d = {
                    begin: "",
                    end: ""
                };
                var e = c.getFullYear();
                d.begin = e + "-07-01 00:00:00";
                d.end = e + "-12-31 23:59:59";
                return d
            }
        });
        Date.prototype.DateAdd = function(e, d) {
            var c = this;
            switch (e) {
                case "s":
                    return new Date(Date.parse(c) + (1000 * d));
                case "n":
                    return new Date(Date.parse(c) + (60000 * d));
                case "h":
                    return new Date(Date.parse(c) + (3600000 * d));
                case "d":
                    return new Date(Date.parse(c) + (86400000 * d));
                case "w":
                    return new Date(Date.parse(c) + ((86400000 * 7) * d));
                case "q":
                    return new Date(c.getFullYear(), (c.getMonth()) + d * 3, c.getDate(), c.getHours(), c.getMinutes(), c.getSeconds());
                case "m":
                    return new Date(c.getFullYear(), (c.getMonth()) + d, c.getDate(), c.getHours(), c.getMinutes(), c.getSeconds());
                case "y":
                    return new Date((c.getFullYear() + d), c.getMonth(), c.getDate(), c.getHours(), c.getMinutes(), c.getSeconds())
            }
        };
        Date.prototype.DateDiff = function(e, c) {
            var d = this;
            if (typeof c == "string") {
                c = b.parseDate(c)
            }
            switch (e) {
                case "s":
                    return parseInt((c - d) / 1000);
                case "n":
                    return parseInt((c - d) / 60000);
                case "h":
                    return parseInt((c - d) / 3600000);
                case "d":
                    return parseInt((c - d) / 86400000);
                case "w":
                    return parseInt((c - d) / (86400000 * 7));
                case "m":
                    return (c.getMonth() + 1) + ((c.getFullYear() - d.getFullYear()) * 12) - (d.getMonth() + 1);
                case "y":
                    return c.getFullYear() - d.getFullYear()
            }
        };
        Date.prototype.MaxDayOfDate = function() {
            var f = this;
            var c = f.toArray();
            var d = (new Date(c[0], c[1] + 1, 1));
            var e = d.DateAdd("m", 1);
            var g = dateDiff(d.Format("yyyy-MM-dd"), e.Format("yyyy-MM-dd"));
            return g
        };
        Date.prototype.isLeapYear = function() {
            return (0 == this.getYear() % 4 && ((this.getYear() % 100 != 0) || (this.getYear() % 400 == 0)))
        }
    })(jQuery, top.learun);
    (function(a, b) {
        b.validator = {
            validReg: function(d, e, c) {
                var f = {
                    code: true,
                    msg: ""
                };
                if (!e.test(d)) {
                    f.code = false;
                    f.msg = c
                }
                return f
            },
            validRegOrNull: function(d, e, c) {
                var f = {
                    code: true,
                    msg: ""
                };
                if (d == null || d == undefined || d.length == 0) {
                    return f
                }
                if (!e.test(d)) {
                    f.code = false;
                    f.msg = c
                }
                return f
            },
            isNotNull: function(c) {
                var d = {
                    code: true,
                    msg: ""
                };
                c = a.trim(c);
                if (c == null || c == undefined || c.length == 0) {
                    d.code = false;
                    d.msg = "不能为空"
                }
                return d
            },
            isNum: function(c) {
                return b.validator.validReg(c, /^[-+]?\d+$/, "必须为数字")
            },
            isNumOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^[-+]?\d+$/, "数字或空")
            },
            isEmail: function(c) {
                return b.validator.validReg(c, /^\w{3,}@\w+(\.\w+)+$/, "必须为E-mail格式")
            },
            isEmailOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^\w{3,}@\w+(\.\w+)+$/, "必须为E-mail格式或空")
            },
            isEnglishStr: function(c) {
                return b.validator.validReg(c, /^[a-z,A-Z]+$/, "必须为英文字符串")
            },
            isEnglishStrOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^[a-z,A-Z]+$/, "必须为英文字符串或空")
            },
            isTelephone: function(c) {
                return b.validator.validReg(c, /^(\d{3,4}\-)?[1-9]\d{6,7}$/, "必须为电话格式")
            },
            isTelephoneOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^(\d{3,4}\-)?[1-9]\d{6,7}$/, "必须为电话格式或空")
            },
            isMobile: function(c) {
                return b.validator.validReg(c, /^(\+\d{2,3}\-)?\d{11}$/, "必须为手机格式")
            },
            isMobileOrnull: function(c) {
                return b.validator.validRegOrNull(c, /^(\+\d{2,3}\-)?\d{11}$/, "必须为手机格式或空")
            },
            isMobileOrPhone: function(c) {
                var d = {
                    code: true,
                    msg: ""
                };
                if (!b.validator.isTelephone(c).code && !b.validator.isMobile(c).code) {
                    d.code = false;
                    d.msg = "为电话格式或手机格式"
                }
                return d
            },
            isMobileOrPhoneOrNull: function(c) {
                var d = {
                    code: true,
                    msg: ""
                };
                if (b.validator.isNotNull(c).code && !b.validator.isTelephone(c).code && !b.validator.isMobile(c).code) {
                    d.code = false;
                    d.msg = "为电话格式或手机格式或空"
                }
                return d
            },
            isUri: function(c) {
                return b.validator.validReg(c, /^http:\/\/[a-zA-Z0-9]+\.[a-zA-Z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/, "必须为网址格式")
            },
            isUriOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^http:\/\/[a-zA-Z0-9]+\.[a-zA-Z0-9]+[\/=\?%\-&_~`@[\]\':+!]*([^<>\"\"])*$/, "必须为网址格式或空")
            },
            isDate: function(c) {
                return b.validator.validReg(c, /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/, "必须为日期格式")
            },
            isDateOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2})$/, "必须为日期格式或空")
            },
            isDateTime: function(c) {
                return b.validator.validReg(c, /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/, "必须为日期时间格式")
            },
            isDateTimeOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^(\d{1,4})(-|\/)(\d{1,2})\2(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})$/, "必须为日期时间格式")
            },
            isTime: function(c) {
                return b.validator.validReg(c, /^((20|21|22|23|[0-1]\d)\:[0-5][0-9])(\:[0-5][0-9])?$/, "必须为时间格式")
            },
            isTimeOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^((20|21|22|23|[0-1]\d)\:[0-5][0-9])(\:[0-5][0-9])?$/, "必须为时间格式或空")
            },
            isChinese: function(c) {
                return b.validator.validReg(c, /^[\u0391-\uFFE5]+$/, "必须为中文")
            },
            isChineseOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^[\u0391-\uFFE5]+$/, "必须为中文或空")
            },
            isZip: function(c) {
                return b.validator.validReg(c, /^\d{6}$/, "必须为邮编格式")
            },
            isZipOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^\d{6}$/, "必须为邮编格式或空")
            },
            isDouble: function(c) {
                return b.validator.validReg(c, /^[-\+]?\d+(\.\d+)?$/, "必须为小数")
            },
            isDouble1: function(c) {
                return b.validator.validReg(c, /((^[1-9]\d*)|^0)(\.\d{0,2}){0,1}$/, "必须正整数或2位小数")
            },
            isDoubleOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^[-\+]?\d+(\.\d+)?$/, "必须为小数或空")
            },
            isIDCard: function(c) {
                return b.validator.validReg(c, /^\d{15}(\d{2}[A-Za-z0-9;])?$/, "必须为身份证格式")
            },
            isIDCardOrNull: function(c) {
                return b.validator.validRegOrNull(c, /^\d{15}(\d{2}[A-Za-z0-9;])?$/, "必须为身份证格式或空")
            },
            isIP: function(d) {
                var f = {
                    code: true,
                    msg: ""
                };
                var e = /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/g;
                var c = false;
                if (e.test(d)) {
                    if (RegExp.$1 < 256 && RegExp.$2 < 256 && RegExp.$3 < 256 && RegExp.$4 < 256) {
                        c = true
                    }
                }
                if (!c) {
                    f.code = false;
                    f.msg = "必须为IP格式"
                }
                return f
            },
            isIPOrNull: function(c) {
                var d = {
                    code: true,
                    msg: ""
                };
                if (b.validator.isNotNull(c) && !b.validator.isIP(c).code) {
                    d.code = false;
                    d.msg = "必须为IP格式或空"
                }
                return d
            },
            isLenNum: function(d, c) {
                var f = {
                    code: true,
                    msg: ""
                };
                var e = /^[0-9]+$/;
                d = a.trim(d);
                if (d.length > c || !e.test(d)) {
                    f.code = false;
                    f.msg = "必须为" + c + "位数字"
                }
                return f
            },
            isLenNumOrNull: function(d, c) {
                var e = {
                    code: true,
                    msg: ""
                };
                if (b.validator.isNotNull(d).code && !b.validator.isLenNum(d)) {
                    e.code = false;
                    e.msg = "必须为" + c + "位数字或空"
                }
                return e
            },
            isLenStr: function(d, c) {
                var e = {
                    code: true,
                    msg: ""
                };
                d = a.trim(d);
                if (!b.validator.isNotNull(d).code || d.length > c) {
                    e.code = false;
                    e.msg = "必须小于等于" + c + "位字符"
                }
                return e
            },
            isLenStrOrNull: function(d, c) {
                var e = {
                    code: true,
                    msg: ""
                };
                d = a.trim(d);
                if (b.validator.isNotNull(d).code && d.length > c) {
                    e.code = false;
                    e.msg = "必须小于等于" + c + "位字符或空"
                }
                return e
            }
        }
    })(window.jQuery, top.learun);
    (function(a, b) {
        a.extend(b, {
            layerConfirm: function(c, d) {
                top.learun.language.get(c, function(e) {
                    top.layer.confirm(e, {
                        btn: ["确认", "取消"],
                        title: "紫光云提示",
                        icon: 0,
                        skin: "lr-layer",
                        success: function(g, f) {
                            g.find(".layui-layer-btn a").each(function() {
                                var h = a(this);
                                var i = h.text();
                                top.learun.language.get(i, function(j) {
                                    h.text(j)
                                })
                            });
                            g.find(".layui-layer-title").each(function() {
                                var h = a(this);
                                var i = h.text();
                                top.learun.language.get(i, function(j) {
                                    h.text(j)
                                })
                            })
                        },
                    }, function(f) {
                        d(true, f)
                    }, function(f) {
                        d(false, f);
                        top.layer.close(f)
                    })
                })
            },
            layerForm: function(d) {
                var c = {
                    id: null,
                    title: "系统窗口",
                    width: 550,
                    height: 400,
                    url: "error",
                    btn: ["确认", "关闭"],
                    callBack: false,
                    maxmin: false,
                    end: false,
                };
                a.extend(c, d || {});
                c.width = c.width > a(window).width() ? a(window).width() - 10 : c.width;
                c.height = c.height > a(window).height() ? a(window).height() - 10 : c.height;
                var e = top.layer.open({
                    closeBtn: c.closeBtn,
                    id: c.id,
                    maxmin: c.maxmin,
                    type: 2,
                    title: c.title,
                    area: [c.width + "px", c.height + "px"],
                    btn: c.btn,
                    content: d.url,
                    skin: c.btn == null ? "lr-layer-nobtn" : "lr-layer",
                    success: function(g, f) {
                        top["layer_" + c.id] = b.iframe(a(g).find("iframe").attr("id"), top.frames);
                        g[0].learun_layerid = "layer_" + c.id;
                        if (!!c.btn && g.find(".lr-layer-btn-cb").length == 0) {
                            top.learun.language.get("确认并关闭窗口", function(h) {
                                g.find(".layui-layer-btn").append('<div class="checkbox lr-layer-btn-cb" myIframeId="layer_' + c.id + '" ><label><input checked="checked" type="checkbox" >' + h + "</label></div>")
                            });
                            g.find(".layui-layer-btn a").each(function() {
                                var h = a(this);
                                var i = h.text();
                                top.learun.language.get(i, function(j) {
                                    h.text(j)
                                })
                            })
                        }
                        g.find(".layui-layer-title").each(function() {
                            var h = a(this);
                            var i = h.text();
                            top.learun.language.get(i, function(j) {
                                h.text(j)
                            })
                        })
                    },
                    yes: function(g) {
                        var f = true;
                        if (!!c.callBack) {
                            f = c.callBack("layer_" + c.id)
                        }
                        if (!!f) {
                            b.layerClose("", g)
                        }
                    },
                    end: function() {
                        top["layer_" + c.id] = null;
                        if (!!c.end) {
                            c.end()
                        }
                    }
                })
            },
            layerClose: function(h, e) {
                var d;
                if (!!e) {
                    d = e
                } else {
                    d = top.layer.getFrameIndex(h)
                }
                var g = top.$("#layui-layer" + d);
                var c = g.find(".layui-layer-btn").find(".lr-layer-btn-cb input");
                var f = c.is(":checked");
                if (c.length == 0) {
                    f = true
                }
                if (f) {
                    top.layer.close(d)
                } else {
                    top[g[0].learun_layerid].location.reload()
                }
            }
        })
    })(window.jQuery, top.learun);
    (function(a, d) {
        var c = {
            success: 200,
            fail: 400,
            exception: 500
        };
        var b = {
            code: c.exception,
            info: "通信异常，请联系管理员！"
        };
        a.extend(d, {
            httpErrorLog: function(e) {
                d.log(e)
            },
            httpCode: c,
            httpAsyncGet: function(f, e) {
                a.ajax({
                    url: f,
                    type: "GET",
                    dataType: "json",
                    async: true,
                    cache: false,
                    success: function(g) {
                        if (g.code == d.httpCode.exception) {
                            d.httpErrorLog(g.info);
                            g.info = "系统异常，请联系管理员！"
                        }
                        e(g)
                    },
                    error: function(i, h, g) {
                        d.httpErrorLog(h);
                        e(b)
                    },
                    beforeSend: function() {},
                    complete: function() {}
                })
            },
            httpGet: function(g, e) {
                var f = {};
                a.ajax({
                    url: g,
                    data: e,
                    type: "GET",
                    dataType: "json",
                    async: false,
                    cache: false,
                    success: function(h) {
                        if (h.code == d.httpCode.exception) {
                            d.httpErrorLog(h.info);
                            h.info = "系统异常，请联系管理员！"
                        }
                        f = h
                    },
                    error: function(j, i, h) {
                        d.httpErrorLog(i)
                    },
                    beforeSend: function() {},
                    complete: function() {}
                });
                return f
            },
            httpAsyncPost: function(g, f, e) {
                a.ajax({
                    url: g,
                    data: f,
                    type: "POST",
                    dataType: "json",
                    async: true,
                    cache: false,
                    success: function(h) {
                        if (h.code == d.httpCode.exception) {
                            d.httpErrorLog(h.info);
                            h.info = "系统异常，请联系管理员！"
                        }
                        e(h)
                    },
                    error: function(j, i, h) {
                        d.httpErrorLog(i);
                        e(b)
                    },
                    beforeSend: function() {},
                    complete: function() {}
                })
            },
            httpPost: function(g, f, e) {
                a.ajax({
                    url: g,
                    data: f,
                    type: "POST",
                    dataType: "json",
                    async: false,
                    cache: false,
                    success: function(h) {
                        if (h.code == d.httpCode.exception) {
                            d.httpErrorLog(h.info);
                            h.info = "系统异常，请联系管理员！"
                        }
                        e(h)
                    },
                    error: function(j, i, h) {
                        d.httpErrorLog(i);
                        e(b)
                    },
                    beforeSend: function() {},
                    complete: function() {}
                })
            },
            httpAsync: function(g, h, f, e) {
                a.ajax({
                    url: h,
                    data: f,
                    type: g,
                    dataType: "json",
                    async: true,
                    cache: false,
                    success: function(i) {
                        if (i.code == d.httpCode.success) {
                            e(i.data, i.info)
                        } else {
                            d.httpErrorLog(i.info);
                            e(null, i.info)
                        }
                    },
                    error: function(k, j, i) {
                        d.httpErrorLog(j);
                        e(null)
                    },
                    beforeSend: function() {},
                    complete: function() {}
                })
            },
            httpSync: function(g, h, f, e) {
                a.ajax({
                    url: h,
                    data: f,
                    type: g,
                    dataType: "json",
                    async: false,
                    cache: false,
                    success: function(i) {
                        if (i.code == d.httpCode.success) {
                            e(i.data, i.info)
                        } else {
                            d.httpErrorLog(i.info);
                            e(null, i.info)
                        }
                    },
                    error: function(k, j, i) {
                        d.httpErrorLog(j);
                        e(null)
                    },
                    beforeSend: function() {},
                    complete: function() {}
                })
            },
            deleteForm: function(g, f, e) {
                d.loading(true, "正在删除数据");
                d.httpAsyncPost(g, f, function(h) {
                    d.loading(false);
                    if (h.code == d.httpCode.success) {
                        if (!!e) {
                            e(h)
                        }
                        d.alert.success(h.info)
                    } else {
                        d.alert.error(h.info);
                        d.httpErrorLog(h.info)
                    }
                    layer.close(layer.index)
                })
            },
            postForm: function(g, f, e) {
                d.loading(true, "正在提交数据");
                d.httpAsyncPost(g, f, function(h) {
                    d.loading(false);
                    if (h.code == d.httpCode.success) {
                        if (!!e) {
                            e(h)
                        }
                        d.alert.success(h.info)
                    } else {
                        d.alert.error(h.info);
                        d.httpErrorLog(h.info)
                    }
                    layer.close(layer.index)
                })
            }
        })
    })(window.jQuery, top.learun);
    (function(a, g) {
        var h = {
            no: -1,
            yes: 1,
            ing: 0,
            fail: 2
        };
        var d = {};
        var b = {};
        var c = {};

        function f(k) {
            var m = h.yes;
            for (var l in d) {
                var j = d[l];
                if (j.state == h.fail) {
                    m = h.fail;
                    break
                } else {
                    if (j.state == h.no) {
                        m = h.ing;
                        j.init()
                    } else {
                        if (j.state == h.ing) {
                            m = h.ing
                        }
                    }
                }
            }
            if (m == h.yes) {
                k(true)
            } else {
                if (m == h.fail) {
                    k(false)
                } else {
                    setTimeout(function() {
                        f(k)
                    }, 100)
                }
            }
        }

        function e(l, j) {
            var n = "";
            var m = j.length;
            if (m == undefined) {
                n = j[l]
            } else {
                for (var k = 0; k < m; k++) {
                    if (l(j[k])) {
                        n = j[k];
                        break
                    }
                }
            }
            return n
        }
        g.clientdata = {
            init: function(j) {
                f(function(k) {
                    j(k);
                    if (k) {
                        b.company.init()
                    }
                })
            },
            get: function(m) {
                var n = "";
                if (!m) {
                    return n
                }
                var l = m.length;
                var j = c;
                for (var k = 0; k < l; k++) {
                    n = e(m[k], j);
                    if (n != "" && n != undefined) {
                        j = n
                    } else {
                        break
                    }
                }
                n = n || "";
                return n
            },
            getAsync: function(j, k) {
                return b[j].get(k)
            },
            getAllAsync: function(j, k) {
                return b[j].getAll(k)
            },
            getsAsync: function(j, k) {
                return b[j].gets(k)
            },
            update: function(j) {
                b[j].update && b[j].update()
            }
        };
        d.modules = {
            state: h.no,
            init: function() {
                d.modules.state = h.ing;
                g.httpAsyncGet(a.rootUrl + "/LR_SystemModule/Module/GetModuleList", function(j) {
                    if (j.code == g.httpCode.success) {
                        c.modules = j.data;
                        d.modules.toMap();
                        d.modules.state = h.yes
                    } else {
                        c.modules = [];
                        d.modules.toMap();
                        d.modules.state = h.fail
                    }
                })
            },
            toMap: function() {
                var n = {};
                var m = {};
                var k = c.modules.length;
                for (var l = 0; l < k; l++) {
                    var j = c.modules[l];
                    if (j.enabledMark == 1) {
                        n[j.parentId] = n[j.parentId] || [];
                        n[j.parentId].push(j);
                        m[j.moduleId] = j
                    }
                }
                c.modulesTree = n;
                c.modulesMap = m
            }
        };
        d.userinfo = {
            state: h.no,
            init: function() {
                d.userinfo.state = h.ing;
                g.httpAsyncGet(a.rootUrl + "/LR_OrganizationModule/User/GetUserInfo", function(j) {
                    if (j.code == g.httpCode.success) {
                        c.userinfo = j.data;
                        d.userinfo.state = h.yes
                    } else {
                        d.userinfo.state = h.fail
                    }
                })
            }
        };
        var i = {
            get: function(j) {
                if (localStorage) {
                    return JSON.parse(localStorage.getItem(j)) || {}
                } else {
                    return c[j] || {}
                }
            },
            set: function(k, j) {
                if (localStorage) {
                    localStorage.setItem(k, JSON.stringify(j))
                } else {
                    c[k] = j
                }
            }
        };
        b.company = {
            states: h.no,
            init: function() {
                if (b.company.states == h.no) {
                    b.company.states = h.ing;
                    var j = i.get("companyData").ver || "";
                    g.httpAsync("GET", top.$.rootUrl + "/LR_OrganizationModule/Company/GetMap", {
                        ver: j
                    }, function(k) {
                        if (!k) {
                            b.company.states = h.fail
                        } else {
                            if (k.ver) {
                                i.set("companyData", k)
                            }
                            b.company.states = h.yes;
                            b.department.init()
                        }
                    })
                }
            },
            get: function(k) {
                b.company.init();
                if (b.company.states == h.ing) {
                    setTimeout(function() {
                        b.company.get(k)
                    }, 100)
                } else {
                    var j = i.get("companyData").data || {};
                    k.callback(j[k.key] || {}, k)
                }
            },
            getAll: function(k) {
                b.company.init();
                if (b.company.states == h.ing) {
                    setTimeout(function() {
                        b.company.getAll(k)
                    }, 100)
                } else {
                    var j = i.get("companyData").data || {};
                    k.callback(j, k)
                }
            }
        };
        b.department = {
            states: h.no,
            init: function() {
                if (b.department.states == h.no) {
                    b.department.states = h.ing;
                    var j = i.get("departmentData").ver || "";
                    g.httpAsync("GET", top.$.rootUrl + "/LR_OrganizationModule/Department/GetMap", {
                        ver: j
                    }, function(k) {
                        if (!k) {
                            b.department.states = h.fail
                        } else {
                            if (k.ver) {
                                i.set("departmentData", k)
                            }
                            b.department.states = h.yes;
                            b.user.init()
                        }
                    })
                }
            },
            get: function(k) {
                b.department.init();
                if (b.department.states == h.ing) {
                    setTimeout(function() {
                        b.department.get(k)
                    }, 100)
                } else {
                    var j = i.get("departmentData").data || {};
                    k.callback(j[k.key] || {}, k)
                }
            },
            getAll: function(k) {
                b.department.init();
                if (b.department.states == h.ing) {
                    setTimeout(function() {
                        b.department.getAll(k)
                    }, 100)
                } else {
                    var j = i.get("departmentData").data || {};
                    k.callback(j, k)
                }
            }
        };
        b.user = {
            states: h.no,
            init: function() {
                if (b.user.states == h.no) {
                    b.user.states = h.ing;
                    var j = i.get("userData").ver || "";
                    g.httpAsync("GET", top.$.rootUrl + "/LR_OrganizationModule/User/GetMap", {
                        ver: j
                    }, function(k) {
                        if (!k) {
                            b.user.states = h.fail
                        } else {
                            if (k.ver) {
                                i.set("userData", k)
                            }
                            b.user.states = h.yes;
                            b.dataItem.init()
                        }
                    })
                }
            },
            get: function(k) {
                b.user.init();
                if (b.user.states == h.ing) {
                    setTimeout(function() {
                        b.user.get(k)
                    }, 100)
                } else {
                    var j = i.get("userData").data || {};
                    k.callback(j[k.key] || {}, k)
                }
            },
            getAll: function(k) {
                b.user.init();
                if (b.user.states == h.ing) {
                    setTimeout(function() {
                        b.user.getAll(k)
                    }, 100)
                } else {
                    var j = i.get("userData").data || {};
                    k.callback(j, k)
                }
            }
        };
        b.dataItem = {
            states: h.no,
            init: function() {
                if (b.dataItem.states == h.no) {
                    b.dataItem.states = h.ing;
                    var j = i.get("dataItemData").ver || "";
                    g.httpAsync("GET", top.$.rootUrl + "/LR_SystemModule/DataItem/GetMap", {
                        ver: j
                    }, function(k) {
                        if (!k) {
                            b.dataItem.states = h.fail
                        } else {
                            if (k.ver) {
                                i.set("dataItemData", k)
                            }
                            b.dataItem.states = h.yes;
                            b.db.init()
                        }
                    })
                }
            },
            get: function(l) {
                b.dataItem.init();
                if (b.dataItem.states == h.ing) {
                    setTimeout(function() {
                        b.dataItem.get(l)
                    }, 100)
                } else {
                    var k = i.get("dataItemData").data || {};
                    var j = b.dataItem.find(l.key, k[l.code] || {});
                    if (j) {
                        top.learun.language.get(j.text, function(m) {
                            j.text = m;
                            l.callback(j, l)
                        })
                    } else {
                        l.callback({}, l)
                    }
                }
            },
            getAll: function(k) {
                b.dataItem.init();
                if (b.dataItem.states == h.ing) {
                    setTimeout(function() {
                        b.dataItem.getAll(k)
                    }, 100)
                } else {
                    var j = i.get("dataItemData").data || {};
                    var l = {};
                    a.each(j[k.code] || {}, function(m, n) {
                        n.text = top.learun.language.getSyn(n.text);
                        l[m] = n
                    });
                    k.callback(l, k)
                }
            },
            gets: function(m) {
                b.dataItem.init();
                if (b.dataItem.states == h.ing) {
                    setTimeout(function() {
                        b.dataItem.get(m)
                    }, 100)
                } else {
                    var k = i.get("dataItemData").data || {};
                    var l = m.key.split(",");
                    var j = [];
                    a.each(l, function(n, o) {
                        var o = b.dataItem.find(o, k[m.code] || {});
                        top.learun.language.get(o.text, function(p) {
                            j.push(p)
                        })
                    });
                    m.callback(String(j), m)
                }
            },
            find: function(l, j) {
                var m = {};
                for (var k in j) {
                    if (j[k].value == l) {
                        m = j[k];
                        break
                    }
                }
                return m
            },
            update: function() {
                b.dataItem.states = h.no;
                b.dataItem.init()
            }
        };
        b.db = {
            states: h.no,
            init: function() {
                if (b.db.states == h.no) {
                    b.db.states = h.ing;
                    var j = i.get("dbData").ver || "";
                    g.httpAsync("GET", top.$.rootUrl + "/LR_SystemModule/DatabaseLink/GetMap", {
                        ver: j
                    }, function(k) {
                        if (!k) {
                            b.db.states = h.fail
                        } else {
                            if (k.ver) {
                                i.set("dbData", k)
                            }
                            b.db.states = h.yes
                        }
                    })
                }
            },
            get: function(k) {
                b.db.init();
                if (b.db.states == h.ing) {
                    setTimeout(function() {
                        b.db.get(k)
                    }, 100)
                } else {
                    var j = i.get("dbData").data || {};
                    k.callback(j[k.key] || {}, k)
                }
            },
            getAll: function(k) {
                b.db.init();
                if (b.db.states == h.ing) {
                    setTimeout(function() {
                        b.db.getAll(k)
                    }, 100)
                } else {
                    var j = i.get("dbData").data || {};
                    k.callback(j, k)
                }
            }
        };
        b.sourceData = {
            states: {},
            get: function(k) {
                if (b.sourceData.states[k.code] == undefined || b.sourceData.states[k.code] == h.no) {
                    b.sourceData.states[k.code] = h.ing;
                    b.sourceData.load(k.code)
                }
                if (b.sourceData.states[k.code] == h.ing) {
                    setTimeout(function() {
                        b.sourceData.get(k)
                    }, 100)
                } else {
                    var j = i.get("sourceData_" + k.code).data || [];
                    if (!!j) {
                        k.callback(b.sourceData.find(k.key, k.keyId, j) || {}, k)
                    } else {
                        k.callback({}, k)
                    }
                }
            },
            getAll: function(k) {
                if (b.sourceData.states[k.code] == undefined || b.sourceData.states[k.code] == h.no) {
                    b.sourceData.states[k.code] = h.ing;
                    b.sourceData.load(k.code)
                }
                if (b.sourceData.states[k.code] == h.ing) {
                    setTimeout(function() {
                        b.sourceData.getAll(k)
                    }, 100)
                } else {
                    if (b.sourceData.states[k.code] == h.yes) {
                        var j = i.get("sourceData_" + k.code).data || [];
                        if (!!j) {
                            k.callback(j, k)
                        } else {
                            k.callback({}, k)
                        }
                    }
                }
            },
            load: function(j) {
                var k = i.get("sourceData_" + j).ver || "";
                g.httpAsync("GET", top.$.rootUrl + "/LR_SystemModule/DataSource/GetMap", {
                    code: j,
                    ver: k
                }, function(l) {
                    if (!l) {
                        b.sourceData.states[j] = h.fail
                    } else {
                        if (l.ver) {
                            i.set("sourceData_" + j, l)
                        }
                        b.sourceData.states[j] = h.yes
                    }
                })
            },
            find: function(m, n, j) {
                var p = {};
                for (var k = 0, o = j.length; k < o; k++) {
                    if (j[k][n] == m) {
                        p = j[k];
                        break
                    }
                }
                return p
            }
        };
        b.custmerData = {
            states: {},
            get: function(k) {
                if (b.custmerData.states[k.url] == undefined || b.custmerData.states[k.url] == h.no) {
                    b.custmerData.states[k.url] = h.ing;
                    b.custmerData.load(k.url)
                }
                if (b.custmerData.states[k.url] == h.ing) {
                    setTimeout(function() {
                        b.custmerData.get(k)
                    }, 100)
                } else {
                    var j = c[k.url] || [];
                    if (!!j) {
                        k.callback(b.custmerData.find(k.key, k.keyId, j) || {}, k)
                    } else {
                        k.callback({}, k)
                    }
                }
            },
            gets: function(m) {
                if (b.custmerData.states[m.url] == undefined || b.custmerData.states[m.url] == h.no) {
                    b.custmerData.states[m.url] = h.ing;
                    b.custmerData.load(m.url)
                }
                if (b.custmerData.states[m.url] == h.ing) {
                    setTimeout(function() {
                        b.custmerData.get(m)
                    }, 100)
                } else {
                    var k = c[m.url] || [];
                    if (!!k) {
                        var l = m.key.split(",");
                        var j = [];
                        a.each(l, function(n, o) {
                            var o = b.custmerData.find(m.key, m.keyId, k) || {};
                            if (o[m.textId]) {
                                j.push(o[m.textId])
                            }
                        });
                        m.callback(String(j), m)
                    } else {
                        m.callback("", m)
                    }
                }
            },
            getAll: function(k) {
                if (b.custmerData.states[k.url] == undefined || b.custmerData.states[k.url] == h.no) {
                    b.custmerData.states[k.url] = h.ing;
                    b.custmerData.load(k.url)
                }
                if (b.custmerData.states[k.url] == h.ing) {
                    setTimeout(function() {
                        b.custmerData.get(k)
                    }, 100)
                } else {
                    var j = c[k.url] || [];
                    if (!!j) {
                        k.callback(j, k)
                    } else {
                        k.callback([], k)
                    }
                }
            },
            load: function(j) {
                g.httpAsync("GET", top.$.rootUrl + j, {}, function(k) {
                    if (!!k) {
                        c[j] = k
                    }
                    b.custmerData.states[j] = h.yes
                })
            },
            find: function(m, n, j) {
                var p = {};
                for (var k = 0, o = j.length; k < o; k++) {
                    if (j[k][n] == m) {
                        p = j[k];
                        break
                    }
                }
                return p
            }
        };
        b.desktop = {
            states: h.no,
            init: function() {
                if (b.desktop.states == h.no) {
                    b.desktop.states = h.ing;
                    var j = i.get("desktopData").ver || "";
                    g.httpAsync("GET", top.$.rootUrl + "/LR_Desktop/DTTarget/GetMap", {
                        ver: j
                    }, function(k) {
                        if (!k) {
                            b.desktop.states = h.fail
                        } else {
                            if (k.ver) {
                                i.set("desktopData", k)
                            }
                            b.desktop.states = h.yes;
                            b.department.init()
                        }
                    })
                }
            },
            get: function(k) {
                b.desktop.init();
                if (b.desktop.states == h.ing) {
                    setTimeout(function() {
                        b.desktop.get(k)
                    }, 100)
                } else {
                    var j = i.get("desktopData").data || {};
                    k.callback(j || {}, k)
                }
            }
        }
    })(window.jQuery, top.learun);
    (function(a, c) {
        var h = "no";
        var e = {};
        var f = null;
        var b = {};
        var d = {};
        var g = {
            get: function(i) {
                if (localStorage) {
                    return JSON.parse(localStorage.getItem("lrlg_" + i)) || {}
                } else {
                    return d[i] || {}
                }
            },
            set: function(j, i) {
                if (localStorage) {
                    localStorage.setItem("lrlg_" + j, JSON.stringify(i))
                } else {
                    d[j] = i
                }
            }
        };
        c.language = {
            getMainCode: function() {
                return f
            },
            get: function(l, i) {
                if (h != f) {
                    if (b[h] && b[f]) {
                        var k = g.get(f);
                        var j = g.get(h);
                        i(j.data[k.data[l]] || l)
                    } else {
                        setTimeout(function() {
                            c.language.get(l, i)
                        }, 200)
                    }
                } else {
                    i(l)
                }
            },
            getSyn: function(k) {
                if (h != f) {
                    var j = g.get(f);
                    var i = g.get(h);
                    return i.data[j.data[k]] || k
                } else {
                    return k
                }
            }
        };
        a(function() {
            h = top.$.cookie("Learn_ADMS_V7_Language") || "no";
            var i = a("#lr_lg_setting");
            if (h == "no") {
                i.find("span").text("简体中文")
            }
            i.on("click", "li>a", function() {
                var j = a(this).attr("data-value");
                top.$.cookie("Learn_ADMS_V7_Language", j, {
                    path: "/"
                });
                location.reload()
            });
            c.httpAsyncGet(top.$.rootUrl + "/LR_LGManager/LGType/GetList", function(m) {
                if (m.code == 200) {
                    var j = i.find("ul");
                    a.each(m.data, function(n, o) {
                        e[o.code] = o.name;
                        if (o.isMain == 1) {
                            f = o.code;
                            if (h == "no") {
                                h = f;
                                top.$.cookie("Learn_ADMS_V7_Language", h, {
                                    path: "/"
                                })
                            }
                        }
                        b[o.code] = false;
                        var p = '<li><a href="javascript:void(0);" data-value="' + o.code + '" >' + o.name + "</a></li>";
                        j.append(p)
                    });
                    i.find("span").text(e[h]);
                    if (h != f) {
                        var l = g.get(f);
                        var k = g.get(h);
                        c.httpAsyncGet(top.$.rootUrl + "/LR_LGManager/LGMap/GetLanguageByCode?typeCode=" + f + "&ver=" + l.ver + "&isMain=true", function(n) {
                            if (n.code == 200) {
                                if (n.info != "no update") {
                                    g.set(f, n.data)
                                }
                            }
                            b[f] = true
                        });
                        c.httpAsyncGet(top.$.rootUrl + "/LR_LGManager/LGMap/GetLanguageByCode?typeCode=" + h + "&ver=" + k.ver + "&isMain=false", function(n) {
                            if (n.code == 200) {
                                if (n.info != "no update") {
                                    g.set(h, n.data)
                                }
                            }
                            b[h] = true
                        })
                    }
                }
            })
        })
    })(window.jQuery, top.learun);
    (function(a, b) {
        a.lrtree = {
            getItem: function(f, d) {
                var c = f.split(".");
                var g = d.data;
                for (var e = 0; e < c.length; e++) {
                    if (e == 0) {
                        g = g[c[e]]
                    } else {
                        g = g.ChildNodes[c[e]]
                    }
                }
                return g
            },
            render: function(d) {
                var g = d[0]._lrtree.dfop;
                var e = a('<ul class="lr-tree-root" ></ul>');
                var f = g.data.length;
                for (var h = 0; h < f; h++) {
                    var c = a.lrtree.renderNode(g.data[h], 0, h, g);
                    e.append(c)
                }
                d.append(e);
                d.lrscroll();
                g = null
            },
            renderNode: function(v, p, w, q) {
                if (v.shide) {
                    return ""
                }
                v._deep = p;
                v._path = w;
                var u = v.id.replace(/[^\w]/gi, "_");
                var x = v.title || v.text;
                var g = a('<li class="lr-tree-node"></li>');
                var h = a('<div id="' + q.id + "_" + u + '" tpath="' + w + '" title="' + x + '"  dataId="' + q.id + '"  class="lr-tree-node-el" ></div>');
                if (v.hasChildren) {
                    var o = (v.isexpand || q.isAllExpand) ? "lr-tree-node-expanded" : "lr-tree-node-collapsed";
                    h.addClass(o)
                } else {
                    h.addClass("lr-tree-node-leaf")
                }
                var i = a('<span class="lr-tree-node-indent"></span>');
                if (p == 1) {
                    i.append('<img class="lr-tree-icon" src="' + q.cbiconpath + 's.gif"/>')
                } else {
                    if (p > 1) {
                        i.append('<img class="lr-tree-icon" src="' + q.cbiconpath + 's.gif"/>');
                        for (var r = 1; r < p; r++) {
                            i.append('<img class="lr-tree-icon" src="' + q.cbiconpath + 's.gif"/>')
                        }
                    }
                }
                h.append(i);
                var f = a('<img class="lr-tree-ec-icon" src="' + q.cbiconpath + 's.gif"/>');
                h.append(f);
                if (v.showcheck) {
                    if (v.checkstate == null || v.checkstate == undefined) {
                        v.checkstate = 0
                    }
                    var d = a('<img  id="' + q.id + "_" + u + '_cb" + class="lr-tree-node-cb" src="' + q.cbiconpath + q.icons[v.checkstate] + '" />');
                    h.append(d)
                }
                if (v.icon != -1) {
                    if (!!v.icon) {
                        h.append('<i class="' + v.icon + '"></i>&nbsp;')
                    } else {
                        if (v.hasChildren) {
                            if (v.isexpand || q.isAllExpand) {
                                h.append('<i class="fa fa-folder-open" style="width:15px">&nbsp;</i>')
                            } else {
                                h.append('<i class="fa fa-folder" style="width:15px">&nbsp;</i>')
                            }
                        } else {
                            h.append('<i class="fa fa-file-o"></i>&nbsp;')
                        }
                    }
                }
                var n = '<a class="lr-tree-node-anchor" href="javascript:void(0);">';
                n += '<span data-value="' + v.id + '" class="lr-tree-node-text" >' + v.text + "</span>";
                n += "</a>";
                h.append(n);
                h.on("click", a.lrtree.nodeClick);
                if (!v.complete) {
                    h.append('<div class="lr-tree-loading"><img class="lr-tree-ec-icon" src="' + q.cbiconpath + 'loading.gif"/></div>')
                }
                g.append(h);
                if (v.hasChildren) {
                    var m = a('<ul  class="lr-tree-node-ct" >');
                    if (!v.isexpand && !q.isAllExpand) {
                        m.css("display", "none")
                    }
                    if (v.ChildNodes) {
                        var t = v.ChildNodes.length;
                        for (var s = 0; s < t; s++) {
                            v.ChildNodes[s].parent = v;
                            var e = a.lrtree.renderNode(v.ChildNodes[s], p + 1, w + "." + s, q);
                            m.append(e)
                        }
                        g.append(m)
                    }
                }
                v.render = true;
                q = null;
                return g
            },
            renderNodeAsync: function(d, i, f) {
                var e = a('<ul  class="lr-tree-node-ct" >');
                if (!i.isexpand && !f.isAllExpand) {
                    e.css("display", "none")
                }
                if (i.ChildNodes) {
                    var h = i.ChildNodes.length;
                    for (var g = 0; g < h; g++) {
                        i.ChildNodes[g].parent = i;
                        var c = a.lrtree.renderNode(i.ChildNodes[g], i._deep + 1, i._path + "." + g, f);
                        e.append(c)
                    }
                    d.parent().append(e)
                }
                return e
            },
            renderToo: function(d) {
                var g = d[0]._lrtree.dfop;
                var e = d.find(".lr-tree-root");
                e.html("");
                var f = g.data.length;
                for (var h = 0; h < f; h++) {
                    var c = a.lrtree.renderNode(g.data[h], 0, h, g);
                    e.append(c)
                }
                g = null
            },
            nodeClick: function(i) {
                var j = i.target || i.srcElement;
                var f = a(this);
                var d = a("#" + f.attr("dataId"));
                var h = d[0]._lrtree.dfop;
                if (j.tagName == "IMG") {
                    var c = a(j);
                    var g = f.next(".lr-tree-node-ct");
                    if (c.hasClass("lr-tree-ec-icon")) {
                        if (f.hasClass("lr-tree-node-expanded")) {
                            g.slideUp(200, function() {
                                f.removeClass("lr-tree-node-expanded");
                                f.addClass("lr-tree-node-collapsed")
                            })
                        } else {
                            if (f.hasClass("lr-tree-node-collapsed")) {
                                var l = f.attr("tpath");
                                var k = a.lrtree.getItem(l, h);
                                if (!k.complete) {
                                    if (!k._loading) {
                                        k._loading = true;
                                        f.find(".lr-tree-loading").show();
                                        b.httpAsync("GET", h.url, {
                                            parentId: k.id
                                        }, function(e) {
                                            if (!!e) {
                                                k.ChildNodes = e;
                                                g = a.lrtree.renderNodeAsync(f, k, h);
                                                g.slideDown(200, function() {
                                                    f.removeClass("lr-tree-node-collapsed");
                                                    f.addClass("lr-tree-node-expanded")
                                                });
                                                k.complete = true;
                                                f.find(".lr-tree-loading").hide()
                                            }
                                            k._loading = false
                                        })
                                    }
                                } else {
                                    g.slideDown(200, function() {
                                        f.removeClass("lr-tree-node-collapsed");
                                        f.addClass("lr-tree-node-expanded")
                                    })
                                }
                            }
                        }
                    } else {
                        if (c.hasClass("lr-tree-node-cb")) {
                            var l = f.attr("tpath");
                            var k = a.lrtree.getItem(l, h);
                            if (k.checkstate == 1) {
                                k.checkstate = 0
                            } else {
                                k.checkstate = 1
                            }
                            c.attr("src", h.cbiconpath + h.icons[k.checkstate]);
                            a.lrtree.checkChild(a.lrtree.check, k, k.checkstate, h);
                            a.lrtree.checkParent(a.lrtree.check, k, k.checkstate, h);
                            if (!!h.nodeCheck) {
                                h.nodeCheck(k, f)
                            }
                        }
                    }
                } else {
                    var l = f.attr("tpath");
                    var k = a.lrtree.getItem(l, h);
                    h.currentItem = k;
                    a("#" + h.id).find(".lr-tree-selected").removeClass("lr-tree-selected");
                    f.addClass("lr-tree-selected");
                    if (!!h.nodeClick) {
                        h.nodeClick(k, f)
                    }
                }
                return false
            },
            check: function(h, n, o, e) {
                var m = h.checkstate;
                if (o == 1) {
                    h.checkstate = n
                } else {
                    var d = h.ChildNodes;
                    var j = d.length;
                    var c = true;
                    for (var g = 0; g < j; g++) {
                        d[g].checkstate = d[g].checkstate || 0;
                        if ((n == 1 && d[g].checkstate != 1) || n == 0 && d[g].checkstate != 0) {
                            c = false;
                            break
                        }
                    }
                    if (c) {
                        h.checkstate = n
                    } else {
                        h.checkstate = 2
                    }
                }
                if (h.render && m != h.checkstate) {
                    var k = h.id.replace(/[^\w]/gi, "_");
                    var f = a("#" + e.id + "_" + k + "_cb");
                    if (f.length == 1) {
                        f.attr("src", e.cbiconpath + e.icons[h.checkstate])
                    }
                }
            },
            checkParent: function(d, e, h, c) {
                var f = e.parent;
                while (f) {
                    var g = d(f, h, 0, c);
                    if (g === false) {
                        break
                    }
                    f = f.parent
                }
            },
            checkChild: function(e, h, j, d) {
                if (e(h, j, 1, d) != false) {
                    if (h.ChildNodes != null && h.ChildNodes.length > 0) {
                        var c = h.ChildNodes;
                        for (var f = 0, g = c.length; f < g; f++) {
                            a.lrtree.checkChild(e, c[f], j, d)
                        }
                    }
                }
            },
            search: function(d, c) {
                var e = false;
                a.each(c, function(g, h) {
                    var f = false;
                    if (!b.validator.isNotNull(d).code || h.text.indexOf(d) != -1) {
                        f = true
                    }
                    if (h.hasChildren) {
                        if (a.lrtree.search(d, h.ChildNodes)) {
                            f = true
                        }
                    }
                    if (f) {
                        e = true;
                        h.isexpand = true;
                        h.shide = false
                    } else {
                        h.shide = true
                    }
                });
                return e
            },
            findItem: function(e, f, g) {
                var d = null;
                c(e, f, g);

                function c(h, j, k) {
                    for (var m = 0, n = h.length; m < n; m++) {
                        if (h[m][f] == g) {
                            d = h[m];
                            return true
                        }
                        if (h[m].hasChildren && h[m].ChildNodes.length > 0) {
                            if (c(h[m].ChildNodes, j, k)) {
                                return true
                            }
                        }
                    }
                    return false
                }
                return d
            },
            listTotree: function(e, m, g, o, p, d) {
                var n = [];
                var k = {};
                for (var f = 0, j = e.length; f < j; f++) {
                    var h = e[f];
                    k[h[m]] = k[h[m]] || [];
                    k[h[m]].push(h)
                }
                c(n, "0");

                function c(i, v) {
                    var u = k[v] || [];
                    for (var s = 0, t = u.length; s < t; s++) {
                        var q = u[s];
                        var r = {
                            id: q[g],
                            text: q[o],
                            value: q[p],
                            showcheck: d,
                            checkstate: false,
                            hasChildren: false,
                            isexpand: false,
                            complete: true,
                            ChildNodes: []
                        };
                        if (c(r.ChildNodes, q[g])) {
                            r.hasChildren = true;
                            r.isexpand = true
                        }
                        i.push(r)
                    }
                    return i.length > 0
                }
                return n
            },
            treeTotree: function(f, g, i, j, d, e) {
                var h = [];
                c(h, f);

                function c(q, n) {
                    for (var o = 0, p = n.length; o < p; o++) {
                        var k = n[o];
                        var m = {
                            id: k[g],
                            text: k[i],
                            value: k[j],
                            showcheck: d,
                            checkstate: false,
                            hasChildren: false,
                            isexpand: true,
                            complete: true,
                            ChildNodes: []
                        };
                        if (k[e].length > 0) {
                            m.hasChildren = true;
                            c(m.ChildNodes, k[e])
                        }
                        q.push(m)
                    }
                }
                return h
            },
            addNode: function(e, i, g, h) {
                var f = e[0]._lrtree.dfop;
                if (!!g) {
                    f.data.splice(h, 0, i);
                    var c = a.lrtree.renderNode(i, 0, h, f);
                    if (e.find(".lr-tree-root>li").length == 0) {
                        e.find(".lr-tree-root>li").append(c)
                    } else {
                        e.find(".lr-tree-root>li").eq(h).before(c)
                    }
                } else {
                    var d = e.find("#" + f.id + "_" + g);
                    var j = d.attr("tpath");
                    var c = a.lrtree.renderNode(i, 0, j + "." + h, f);
                    if (d.next().children().length == 0) {
                        d.next().children().append(c)
                    } else {
                        d.next().children().eq(h).before(c)
                    }
                }
            },
            setValue: function(c) {
                var d = c[0]._lrtree.dfop;
                if (d.data.length == 0) {
                    setTimeout(function() {
                        a.lrtree.setValue(c)
                    }, 100)
                } else {
                    c.find('span[data-value="' + d._value + '"]').trigger("click")
                }
            }
        };
        a.fn.lrtree = function(g) {
            var d = {
                icons: ["checkbox_0.png", "checkbox_1.png", "checkbox_2.png"],
                method: "GET",
                url: false,
                param: null,
                data: [],
                isAllExpand: false,
                cbiconpath: top.$.rootUrl + "/Content/images/learuntree/",
                nodeClick: false,
                nodeCheck: false
            };
            a.extend(d, g);
            var c = a(this);
            d.id = c.attr("id");
            if (d.id == null || d.id == "") {
                d.id = "learuntree" + new Date().getTime();
                c.attr("id", d.id)
            }
            c.html("");
            c.addClass("lr-tree");
            c[0]._lrtree = {
                dfop: d
            };
            c[0]._lrtree.dfop.backupData = d.data;
            if (d.url) {
                b.httpAsync(d.method, d.url, d.param, function(h) {
                    c[0]._lrtree.dfop.data = h || [];
                    c[0]._lrtree.dfop.backupData = c[0]._lrtree.dfop.data;
                    a.lrtree.render(c)
                })
            } else {
                a.lrtree.render(c)
            }
            if (d.showcheck) {
                for (var e = 0; e < 3; e++) {
                    var f = new Image();
                    f.src = d.cbiconpath + d.icons[e]
                }
            }
            d = null;
            return c
        };
        a.fn.lrtreeSet = function(i, j) {
            var c = a(this);
            var e = c[0]._lrtree.dfop;
            var f = function(p, m, n) {
                for (var o = 0, q = p.length; o < q; o++) {
                    if (c.find("#" + e.id + "_" + p[o].id.replace(/-/g, "_")).parent().css("display") != "none") {
                        (p[o].showcheck == true && (p[o].checkstate == 1 || p[o].checkstate == 2)) && m.push(n(p[o]));
                        if (!p[o].showcheck || (p[o].showcheck == true && (p[o].checkstate == 1 || p[o].checkstate == 2))) {
                            if (p[o].ChildNodes != null && p[o].ChildNodes.length > 0) {
                                f(p[o].ChildNodes, m, n)
                            }
                        }
                    }
                }
            };
            var g = function(p, m, n) {
                for (var o = 0, q = p.length; o < q; o++) {
                    (p[o].showcheck == true && (p[o].checkstate == 1 || p[o].checkstate == 2) && !p[o].hasChildren) && m.push(n(p[o]));
                    if (!p[o].showcheck || (p[o].showcheck == true && (p[o].checkstate == 1 || p[o].checkstate == 2))) {
                        if (p[o].ChildNodes != null && p[o].ChildNodes.length > 0) {
                            g(p[o].ChildNodes, m, n)
                        }
                    }
                }
            };
            var l = function(p, m, n) {
                for (var o = 0, q = p.length; o < q; o++) {
                    if (p[o].showcheck) {
                        p[o].checkstate = 0
                    }
                    if (p[o].ChildNodes != null && p[o].ChildNodes.length > 0) {
                        l(p[o].ChildNodes)
                    }
                }
            };
            switch (i) {
                case "allNoCheck":
                    c.find(".lr-tree-node-cb").attr("src", e.cbiconpath + "checkbox_0.png");
                    l(e.data);
                    break;
                case "allCheck":
                    c.find('.lr-tree-node-cb[src$="checkbox_0.png"]').each(function() {
                        var m = a(this);
                        if (m.parent().parent().find(".lr-tree-node-ct").length == 0) {
                            m.trigger("click")
                        }
                        m = null
                    });
                    break;
                case "setCheck":
                    var h = j;
                    a.each(h, function(n, o) {
                        var m = c.find("#" + e.id + "_" + o.replace(/-/g, "_"));
                        if (m.next().length == 0) {
                            m.find(".lr-tree-node-cb").trigger("click")
                        }
                    });
                    break;
                case "setValue":
                    e._value = j;
                    a.lrtree.setValue(c);
                    break;
                case "currentItem":
                    return e.currentItem;
                    break;
                case "getCheckNodesEx":
                    var d = [];
                    g(e.data, d, function(m) {
                        return m
                    });
                    return d;
                    break;
                case "getCheckNodes":
                    var d = [];
                    f(e.data, d, function(m) {
                        return m
                    });
                    return d;
                    break;
                case "getCheckNodeIds":
                    var d = [];
                    f(e.data, d, function(m) {
                        return m.id
                    });
                    return d;
                    break;
                case "getCheckNodeIdsByPath":
                    var d = [];
                    var k;
                    f(e.data, d, function(m) {
                        return m.id
                    });
                    return d;
                    break;
                case "search":
                    a.lrtree.search(j.keyword, e.data);
                    if (b.validator.isNotNull(j.keyword).code) {
                        e._isSearch = true
                    } else {
                        if (e._isSearch) {
                            e._isSearch = false
                        }
                    }
                    a.lrtree.renderToo(c);
                    break;
                case "refresh":
                    a.extend(e, j || {});
                    if (!!e.url) {
                        b.httpAsync(e.method, e.url, e.param, function(m) {
                            c[0]._lrtree.dfop.data = m || [];
                            c[0]._lrtree.dfop.backupData = c[0]._lrtree.dfop.data;
                            a.lrtree.renderToo(c);
                            e._isSearch = false
                        })
                    } else {
                        c[0]._lrtree.dfop.backupData = c[0]._lrtree.dfop.data;
                        a.lrtree.renderToo(c);
                        e._isSearch = false
                    }
                    break;
                case "addNode":
                    break;
                case "updateNode":
                    break
            }
        }
    })(jQuery, top.learun);
    (function(a, b) {
        a(function() {
            a(document).click(function(c) {
                c = c || Window.event;
                var d = c.target || c.srcElement;
                if (d.tagName != "BODY") {
                    a(".lr-select-option").slideUp(150);
                    a(".lr-select").removeClass("lr-select-focus")
                }
            })
        });
        a.lrselect = {
            htmlToData: function(c) {
                var e = c[0]._lrselect.dfop;
                var d = c.find("ul");
                e.data = [];
                d.find("li").each(function() {
                    var f = a(this);
                    var g = {
                        id: f.attr("data-value"),
                        text: f.html()
                    };
                    e.data.push(g)
                });
                d.remove();
                d = null;
                e = null
            },
            calc: function(c, f) {
                var d = 0;
                var i = 0;
                d = a("body").height();
                i = c.offset().top;
                var j = i - 1;
                var e = d - i - 30;
                var h = 2;
                if (f.allowSearch) {
                    h += 30
                }
                h += f.data.length * 26;
                if (f.placeholder) {
                    h += 25
                }
                if ((f.type === "tree" || f.type === "treemultiple") && f.data.length > 1) {
                    h = 200
                }
                h = f.height || h;
                var g = {
                    type: 0,
                    height: 0
                };
                if (e > 130 || e > j || e > h) {
                    g.height = e > h ? h : e
                } else {
                    g.type = 1;
                    g.height = j > h ? h : j
                }
                return g
            },
            initRender: function(h, f) {
                a("#learun_select_option_" + h.id).remove();
                var c = a('<div class="lr-select-option" id="learun_select_option_' + h.id + '"></div>');
                var d = a('<div class="lr-select-option-content"></div>');
                var g = a('<ul id="learun_select_option_content' + h.id + '"></ul>');
                c.hide();
                d.html(g);
                c.prepend(d);
                if (h.allowSearch) {
                    var e = a('<div class="lr-select-option-search"><input type="text" placeholder="搜索关键字"><span class="input-query" title="查询"><i class="fa fa-search"></i></span></div>');
                    c.append(e);
                    c.css("padding-bottom", "25px");
                    e.on("click", function() {
                        return false
                    });
                    e.find("input").on("keypress", function(p) {
                        p = p || window.event;
                        if (p.keyCode === 13) {
                            var m = a(this);
                            var r = m.val();
                            var j = m.parents(".lr-select-option");
                            var o = j[0].dfop;
                            if (o.type === "tree" || o.type === "treemultiple") {
                                var k = m.parent().prev();
                                k.lrtreeSet("search", {
                                    keyword: r
                                })
                            } else {
                                if (o.type === "default" || o.type === "multiple") {
                                    for (var q = 0, s = o.data.length; q < s; q++) {
                                        var n = o.data[q];
                                        if (!r || n[o.text].indexOf(r) != -1) {
                                            n._lrhide = false
                                        } else {
                                            n._lrhide = true
                                        }
                                    }
                                    a.lrselect.render(o)
                                }
                            }
                            j = null
                        }
                    })
                }
                a("body").append(c);
                c.on("click", a.lrselect.itemClick);
                c[0].dfop = h;
                f.append('<div class="lr-select-placeholder" >==' + h.placeholder + "==</div>");
                f.attr("type", "lrselect").addClass("lr-select");
                if (h.type != "tree") {
                    d.lrscroll()
                }
            },
            render: function(c) {
                switch (c.type) {
                    case "default":
                        a.lrselect.defaultRender(c);
                        break;
                    case "tree":
                    case "treemultiple":
                        a.lrselect.treeRender(c);
                        break;
                    case "gird":
                        break;
                    case "multiple":
                        a.lrselect.multipleRender(c);
                        break;
                    default:
                        break
                }
                c.isrender = true
            },
            defaultRender: function(e) {
                var d = a("#learun_select_option_content" + e.id);
                d.html("");
                if (e.placeholder) {
                    d.append('<li data-value="-1" class="lr-selectitem-li" >==' + e.placeholder + "==</li>")
                }
                for (var f = 0, h = e.data.length; f < h; f++) {
                    var g = e.data[f];
                    if (!g._lrhide) {
                        var c = a('<li data-value="' + f + '" class="lr-selectitem-li" >' + g[e.text] + "</li>");
                        d.append(c)
                    }
                }
            },
            multipleRender: function(e) {
                var d = a("#learun_select_option_content" + e.id);
                d.html("");
                if (e.placeholder) {
                    d.append('<li data-value="-1" class="lr-selectitem-li" >==' + e.placeholder + "==</li>")
                }
                for (var f = 0, h = e.data.length; f < h; f++) {
                    var g = e.data[f];
                    if (!g._lrhide) {
                        if (!!e.multipleMapValue && e.multipleMapValue[f] != undefined) {
                            var c = a('<li data-value="' + f + '" class="lr-selectitem-li" ><img class="lr-select-node-cb" src="/Content/images/learuntree/checkbox_1.png">' + g[e.text] + "</li>");
                            d.append(c)
                        } else {
                            var c = a('<li data-value="' + f + '" class="lr-selectitem-li" ><img class="lr-select-node-cb" src="/Content/images/learuntree/checkbox_0.png">' + g[e.text] + "</li>");
                            d.append(c)
                        }
                    }
                }
            },
            treeRender: function(e) {
                var c = a("#learun_select_option_" + e.id);
                c.find(".lr-select-option-content").remove();
                var d = a('<div class="lr-select-option-content"></div>');
                c.prepend(d);
                e.data.unshift({
                    id: "-1",
                    text: "==" + e.placeholder + "==",
                    value: "-1",
                    icon: "-1",
                    parentnodes: "0",
                    showcheck: false,
                    isexpand: false,
                    complete: true,
                    hasChildren: false,
                    ChildNodes: []
                });
                var f = {
                    data: e.data,
                    nodeClick: a.lrselect.treeNodeClick
                };
                if (e.type === "treemultiple") {
                    f.nodeClick = a.lrselect.treeNodeClick2;
                    f.nodeCheck = a.lrselect.treeNodeCheck
                }
                d.lrtree(f)
            },
            bindEvent: function(c) {
                c.unbind("click");
                c.on("click", a.lrselect.click)
            },
            click: function(h) {
                var f = a(this);
                if (f.attr("readonly") == "readonly" || f.attr("disabled") == "disabled") {
                    return false
                }
                var g = f[0]._lrselect.dfop;
                if (!g.isload) {
                    return false
                }
                if (!g.isrender) {
                    a.lrselect.render(g)
                }
                h = h || Window.event;
                var i = h.target || h.srcElement;
                var c = a(i);
                var d = a("#learun_select_option_" + g.id);
                if (d.is(":hidden")) {
                    a(".lr-select").removeClass("lr-select-focus");
                    a(".lr-select-option").slideUp(150);
                    f.addClass("lr-select-focus");
                    var n = g.width || f.parent().width();
                    var j = f.innerHeight();
                    var m = f.offset().top;
                    var k = f.offset().left;
                    var l = a.lrselect.calc(f, g);
                    if (l.type == 0) {
                        d.css({
                            width: n,
                            top: m + j + 2,
                            left: k,
                            height: l.height
                        }).show()
                    } else {
                        d.css({
                            width: n,
                            top: m - l.height - 2,
                            left: k,
                            height: l.height
                        }).show()
                    }
                    d.find(".lr-select-option-search").find("input").select();
                    if (g.type != "multiple") {
                        d.find(".selected").removeClass("selected");
                        if (g._index != -1) {
                            d.find('.lr-selectitem-li[data-value="' + g._index + '"]').addClass("selected")
                        }
                    }
                } else {
                    d.slideUp(150);
                    f.removeClass("lr-select-focus")
                }
                g = null;
                h.stopPropagation()
            },
            itemClick: function(k) {
                k = k || Window.event;
                var l = k.target || k.srcElement;
                var d = a(l);
                var g = a(this);
                var j = g[0].dfop;
                var h = a("#" + j.id);
                if (j.type != "multiple") {
                    if (d.hasClass("lr-selectitem-li")) {
                        var i = d.attr("data-value");
                        g.find(".selected").removeClass("selected");
                        d.addClass("selected");
                        if (j._index != i) {
                            var f = h.find(".lr-select-placeholder");
                            if (i == -1) {
                                f.css("color", "#999");
                                f.html("==" + j.placeholder + "==")
                            } else {
                                f.css("color", "#000");
                                f.html(j.data[i][j.text])
                            }
                            j._index = i;
                            h.trigger("change");
                            if (j.select) {
                                j.select(j.data[i])
                            }
                        }
                        g.slideUp(150);
                        h.removeClass("lr-select-focus")
                    }
                } else {
                    if (d.hasClass("lr-selectitem-li") || d.hasClass("lr-select-node-cb")) {
                        var f = h.find(".lr-select-placeholder");
                        var c = d.find(".lr-select-node-cb");
                        var i = d.attr("data-value");
                        if (d.hasClass("lr-select-node-cb")) {
                            c = d;
                            i = d.parent().attr("data-value")
                        }
                        j.multipleMapValue = j.multipleMapValue || {};
                        j.multipleValue = j.multipleValue || [];
                        j.multipleText = j.multipleText || [];
                        if (i == -1) {
                            f.css("color", "#999");
                            f.html("==" + j.placeholder + "==");
                            j.multipleMapValue = {};
                            j.multipleValue = [];
                            j.multipleText = [];
                            g.find('.lr-select-node-cb[src$="checkbox_1.png"]').attr("src", "/Content/images/learuntree/checkbox_0.png");
                            g.slideUp(150);
                            h.removeClass("lr-select-focus")
                        } else {
                            var m = true;
                            if (j.multipleMapValue[i] == undefined) {
                                f.css("color", "#000");
                                j.multipleValue.push(j.data[i][j.value]);
                                j.multipleText.push(j.data[i][j.text]);
                                j.multipleMapValue[i] = j.data[i];
                                f.html(String(j.multipleText));
                                c.attr("src", "/Content/images/learuntree/checkbox_1.png")
                            } else {
                                j.multipleValue = [];
                                j.multipleText = [];
                                delete j.multipleMapValue[i];
                                a.each(j.multipleMapValue, function(e, n) {
                                    j.multipleValue.push(n[j.value]);
                                    j.multipleText.push(n[j.text])
                                });
                                if (j.multipleText.length == 0) {
                                    f.css("color", "#999");
                                    f.html("==" + j.placeholder + "==")
                                } else {
                                    f.html(String(j.multipleText))
                                }
                                m = false;
                                c.attr("src", "/Content/images/learuntree/checkbox_0.png")
                            }
                            h.trigger("change");
                            if (j.select) {
                                j.select(j.data[i], m, h)
                            }
                        }
                    }
                }
                k.stopPropagation()
            },
            treeNodeClick: function(h, d) {
                var e = d.parents(".lr-select-option");
                var g = e[0].dfop;
                e.slideUp(150);
                var f = a("#" + g.id);
                f.removeClass("lr-select-focus");
                g.currtentItem = h;
                var c = f.find(".lr-select-placeholder");
                c.html(g.currtentItem.text);
                if (h.value == "-1") {
                    c.css("color", "#999")
                } else {
                    c.css("color", "#000")
                }
                f.trigger("change");
                if (g.select) {
                    g.select(g.currtentItem)
                }
                e = null;
                f = null
            },
            treeNodeClick2: function(i, d) {
                var g = d.parents(".lr-select-option-content");
                var e = d.parents(".lr-select-option");
                var h = e[0].dfop;
                var f = a("#" + h.id);
                f.removeClass("lr-select-focus");
                h.currtentItems = [];
                if (i.value == "-1") {
                    d.parents(".lr-select-option").slideUp(150);
                    g.lrtreeSet("allNoCheck");
                    var c = f.find(".lr-select-placeholder");
                    c.html(i.text);
                    c.css("color", "#999");
                    f.trigger("change");
                    if (h.select) {
                        h.select([])
                    }
                }
                g = null;
                e = null;
                f = null
            },
            treeNodeCheck: function(m, d) {
                var g = d.parents(".lr-select-option-content");
                var e = d.parents(".lr-select-option");
                var j = e[0].dfop;
                var f = a("#" + j.id);
                var c = f.find(".lr-select-placeholder");
                f.removeClass("lr-select-focus");
                var h = g.lrtreeSet("getCheckNodesEx");
                j.currtentItems = h;
                var p = "";
                for (var k = 0, n = h.length; k < n; k++) {
                    var o = h[k];
                    if (p != "") {
                        p += ","
                    }
                    p += o.text
                }
                if (p == "") {
                    c.html("==" + j.placeholder + "==");
                    c.css("color", "#999")
                } else {
                    c.text(p);
                    c.css("color", "#000")
                }
                f.trigger("change");
                if (j.select) {
                    j.select(j.currtentItems)
                }
                g = null;
                e = null;
                f = null;
                c = null
            },
            defaultValue: function(d, f) {
                var e = d[0]._lrselect.dfop;
                e.currtentItem = null;
                e._index = -1;
                var c = d.find(".lr-select-placeholder");
                c.css("color", "#999");
                c.html("==" + e.placeholder + "==");
                a("#" + e.id + " .lr-select-option .selected").removeClass("selected");
                e.select && e.select(null, f);
                d.trigger("change")
            }
        };
        a.fn.lrselect = function(e) {
            var d = {
                placeholder: "请选择",
                type: "default",
                value: "id",
                text: "text",
                title: "title",
                width: false,
                allowSearch: false,
                url: false,
                data: false,
                param: null,
                method: "GET",
                select: false,
                isload: false,
                isrender: false
            };
            a.extend(d, e || {});
            var c = a(this);
            if (c.length == 0) {
                return c
            }
            d.id = c.attr("id");
            if (!d.id) {
                return false
            }
            if (c[0]._lrselect) {
                return c
            }
            c[0]._lrselect = {
                dfop: d
            };
            a.lrselect.bindEvent(c);
            if (d.url) {
                b.httpAsync(d.method, d.url, d.param, function(f) {
                    c[0]._lrselect.dfop.data = f || [];
                    c[0]._lrselect.dfop.backdata = f || [];
                    d.isload = true
                })
            } else {
                if (d.data) {
                    d.isload = true;
                    d.backdata = d.data
                } else {
                    a.lrselect.htmlToData(c);
                    d.isload = true;
                    d.backdata = d.data
                }
            }
            a.lrselect.initRender(d, c);
            return c
        };
        a.fn.lrselectRefresh = function(e) {
            var c = a(this);
            if (c.length == 0) {
                return c
            }
            if (!c[0]._lrselect) {
                return false
            }
            var d = c[0]._lrselect.dfop;
            if (!d) {
                return false
            }
            a.extend(d, e || {});
            d.isload = false;
            d.isrender = false;
            if (d.url) {
                b.httpAsync(d.method, d.url, d.param, function(f) {
                    c[0]._lrselect.dfop.data = f || [];
                    c[0]._lrselect.dfop.backdata = f || [];
                    d.isload = true
                })
            } else {
                if (d.data) {
                    d.isload = true;
                    d.backdata = d.data
                }
            }
            if (d._setValue != null && d._setValue != undefined) {
                c.lrselectSet(d._setValue)
            } else {
                a.lrselect.defaultValue(c, "refresh")
            }
            return c
        };
        a.fn.lrselectGet = function() {
            var c = a(this);
            if (c.length == 0) {
                return c
            }
            var d = c[0]._lrselect.dfop;
            var g = "";
            switch (d.type) {
                case "default":
                    if (d.data[d._index]) {
                        g = d.data[d._index][d.value]
                    }
                    break;
                case "tree":
                    if (d.currtentItem) {
                        g = d.currtentItem[d.value]
                    }
                    break;
                case "treemultiple":
                    if (d.currtentItems) {
                        for (var e = 0, f = d.currtentItems.length; e < f; e++) {
                            if (g != "") {
                                g += ","
                            }
                            g += d.currtentItems[e][d.value]
                        }
                    }
                    break;
                case "gird":
                    break;
                case "multiple":
                    d.multipleValue = d.multipleValue || [];
                    return String(d.multipleValue);
                default:
                    break
            }
            return g
        };
        a.fn.lrselectSet = function(f) {
            var c = a(this);
            if (c.length == 0) {
                return c
            }
            if (!c[0]._lrselect) {
                return c
            }
            f = f + "";
            if (f == "" || f == "undefined" || f == "null") {
                a.lrselect.defaultValue(c);
                return c
            }
            var e = c[0]._lrselect.dfop;
            e._setValue = null;
            if (!e) {
                return c
            }
            a("#" + e.id + " .lr-select-option .selected").removeClass("selected");

            function d(m) {
                if (m.isload == false) {
                    setTimeout(function() {
                        d(m)
                    }, 100)
                } else {
                    if (m.isload == true) {
                        var j;
                        switch (m.type) {
                            case "default":
                                for (var n = 0, o = m.data.length; n < o; n++) {
                                    if (m.data[n][m.value] == f) {
                                        m._index = n;
                                        j = m.data[n];
                                        break
                                    }
                                }
                                break;
                            case "tree":
                                j = a.lrtree.findItem(m.data, m.value, f);
                                m.currtentItem = j;
                                break;
                            case "treemultiple":
                                a.lrselect.render(m);
                                a("#learun_select_option_" + m.id + " .lr-select-option-content").lrtreeSet("setCheck", f.split(","));
                                return false;
                            case "gird":
                                break;
                            case "multiple":
                                m.multipleMapValue = {};
                                m.multipleValue = [];
                                m.multipleText = [];
                                if (m.isrender) {
                                    a("#learun_select_option_" + m.id).find('.lr-select-node-cb[src$="checkbox_1.png"]').attr("src", "/Content/images/learuntree/checkbox_0.png")
                                }
                                var k = f.split(",");
                                for (var n = 0, o = m.data.length; n < o; n++) {
                                    var h = a.inArray(m.data[n][m.value] + "", k);
                                    if (h != -1) {
                                        m.multipleMapValue[n] = m.data[n];
                                        m.multipleValue.push(m.data[n][m.value]);
                                        m.multipleText.push(m.data[n][m.text]);
                                        if (m.isrender) {
                                            a("#learun_select_option_" + m.id).find('[data-value="' + n + '"] .lr-select-node-cb').attr("src", "/Content/images/learuntree/checkbox_1.png")
                                        }
                                        if (m.select) {
                                            m.select(m.data[n], true, c)
                                        }
                                    }
                                }
                                if (m.multipleText.length > 0) {
                                    j = m.multipleText
                                }
                                break;
                            default:
                                break
                        }
                        if (j) {
                            if (m.type == "multiple") {
                                var g = c.find(".lr-select-placeholder");
                                if (m.multipleText.length > 0) {
                                    g.css("color", "#000")
                                } else {
                                    g.css("color", "#999")
                                }
                                g.html(String(m.multipleText));
                                c.trigger("change")
                            } else {
                                var g = c.find(".lr-select-placeholder");
                                g.html(j[m.text]);
                                g.css("color", "#000");
                                c.trigger("change");
                                if (m.select) {
                                    m.select(j)
                                }
                            }
                        } else {
                            m._setValue = f
                        }
                    }
                }
            }
            d(e);
            return c
        };
        a.fn.lrselectGetEx = function() {
            var c = a(this);
            if (c.length == 0) {
                return c
            }
            var d = c[0]._lrselect.dfop;
            var e = null;
            switch (d.type) {
                case "default":
                    if (d.data[d._index]) {
                        e = d.data[d._index]
                    }
                    break;
                case "tree":
                    if (d.currtentItem) {
                        e = d.currtentItem
                    }
                    break;
                case "treemultiple":
                    if (d.currtentItems) {
                        e = d.currtentItems
                    }
                    break;
                case "gird":
                    break;
                case "multiple":
                    e = d.multipleValue || [];
                    break;
                default:
                    break
            }
            return e
        }
    })(jQuery, top.learun);
    (function(a, f) {
        var b = {
            bootstraper: top.$.rootUrl + "/LR_WorkFlowModule/WfEngine/Bootstraper",
            taskinfo: top.$.rootUrl + "/LR_WorkFlowModule/WfEngine/Taskinfo",
            processinfo: top.$.rootUrl + "/LR_WorkFlowModule/WfEngine/Processinfo",
            processinfoByMonitor: top.$.rootUrl + "/LR_WorkFlowModule/WfEngine/ProcessinfoByMonitor",
            auditer: top.$.rootUrl + "/LR_WorkFlowModule/WfEngine/Auditer",
            create: top.$.rootUrl + "/LR_WorkFlowModule/WfEngine/Create",
            audit: top.$.rootUrl + "/LR_WorkFlowModule/WfEngine/Audit",
        };
        var d = function(j, i, g, h) {
            f.loading(true, h || "正在获取数据");
            f.httpAsync("GET", j, i, function(k) {
                f.loading(false);
                g(k)
            })
        };
        var e = function(j, i, g, h) {
            f.loading(true, h || "正在获取数据");
            f.httpAsync("Post", j, i, function(k) {
                f.loading(false);
                g(k)
            })
        };

        function c() {
            var g = {
                token: top.$.cookie("Learun_ADMS_V7_Token"),
                loginMark: top.$.cookie("Learun_ADMS_V7_Mark"),
            };
            return g
        }
        f.workflowapi = {
            bootstraper: function(h) {
                var g = {
                    isNew: true,
                    processId: "",
                    schemeCode: "",
                };
                a.extend(g, h);
                var i = {
                    isNew: g.isNew,
                    processId: g.processId,
                    schemeCode: g.schemeCode
                };
                d(b.bootstraper, i, function(j) {
                    if (j != null) {
                        if (j.status == 1) {
                            h.callback(true, j.data)
                        } else {
                            f.alert.error(j.desc);
                            h.callback(false)
                        }
                    } else {
                        f.alert.error("获取流程信息失败!");
                        h.callback(false)
                    }
                }, "正在获取流程信息...")
            },
            create: function(h) {
                var g = {
                    isNew: true,
                    processId: "",
                    schemeCode: "",
                    auditers: "{}"
                };
                a.extend(g, h);
                var i = {
                    isNew: g.isNew,
                    processId: g.processId,
                    schemeCode: g.schemeCode,
                    processName: g.processName,
                    processLevel: g.processLevel,
                    description: g.description,
                    auditers: g.auditers,
                    formData: h.formData
                };
                e(b.create, i, function(j) {
                    if (j != null) {
                        if (j.status == 1) {
                            h.callback(true)
                        } else {
                            f.alert.error(j.desc);
                            h.callback(false)
                        }
                    } else {
                        f.alert.error("创建流程失败!");
                        h.callback(false)
                    }
                }, "正在创建流程实例...")
            },
            taskinfo: function(h) {
                var g = {
                    processId: "",
                    taskId: "",
                };
                a.extend(g, h);
                var i = {
                    processId: g.processId,
                    taskId: g.taskId
                };
                d(b.taskinfo, i, function(j) {
                    if (j != null) {
                        if (j.status == 1) {
                            h.callback(true, j.data)
                        } else {
                            f.alert.error(j.desc);
                            h.callback(false)
                        }
                    } else {
                        f.alert.error("获取流程信息失败!");
                        h.callback(false)
                    }
                }, "正在获取流程信息...")
            },
            audit: function(h) {
                var g = {
                    verifyType: "",
                    taskId: "",
                    auditers: "{}"
                };
                a.extend(g, h);
                var i = {
                    taskId: g.taskId,
                    verifyType: g.verifyType,
                    description: g.description,
                    auditorId: g.auditorId,
                    auditorName: g.auditorName,
                    auditers: g.auditers,
                    formData: h.formData
                };
                e(b.audit, i, function(j) {
                    if (j != null) {
                        if (j.status == 1) {
                            h.callback(true)
                        } else {
                            f.alert.error(j.desc);
                            h.callback(false)
                        }
                    } else {
                        f.alert.error("流程审核失败!");
                        h.callback(false)
                    }
                }, "正在审核流程实例...")
            },
            processinfo: function(h) {
                var g = {
                    processId: "",
                    taskId: "",
                };
                a.extend(g, h);
                var i = {
                    processId: g.processId,
                    taskId: g.taskId
                };
                d(b.processinfo, i, function(j) {
                    if (j != null) {
                        if (j.status == 1) {
                            h.callback(true, j.data)
                        } else {
                            f.alert.error(j.desc);
                            h.callback(false)
                        }
                    } else {
                        f.alert.error("获取流程信息失败!");
                        h.callback(false)
                    }
                }, "正在获取流程信息...")
            },
            processinfoByMonitor: function(h) {
                var g = {
                    processId: "",
                    taskId: "",
                };
                a.extend(g, h);
                var i = {
                    processId: g.processId,
                    taskId: g.taskId
                };
                d(b.processinfoByMonitor, i, function(j) {
                    if (j != null) {
                        if (j.status == 1) {
                            h.callback(true, j.data)
                        } else {
                            f.alert.error(j.desc);
                            h.callback(false)
                        }
                    } else {
                        f.alert.error("获取流程信息失败!");
                        h.callback(false)
                    }
                }, "正在获取流程信息...")
            },
            auditer: function(h) {
                var g = {
                    isNew: false,
                    taskId: "",
                    processId: "",
                    schemeCode: "",
                    formData: "{}"
                };
                a.extend(g, h);
                var i = {
                    isNew: g.isNew,
                    processId: g.processId,
                    schemeCode: g.schemeCode,
                    taskId: g.taskId,
                    formData: g.formData
                };
                e(b.auditer, i, function(j) {
                    if (j != null) {
                        h.callback(j)
                    } else {
                        h.callback([])
                    }
                }, "获取下个节点审核人员...")
            }
        }
    })(jQuery, top.learun);
    (function(a, b) {
        a.fn.lrcontextmenu = function(e) {
            var d = {
                menulist: [],
                before: false
            };
            a.extend(d, e || {});
            var c = a(this);
            d.id = c.attr("id");
            if (!d.id) {
                return false
            }
            if (!!c[0]._lrcontextmenu) {
                return false
            }
            c[0]._lrcontextmenu = {
                dfop: d
            };
            c.on("contextmenu", function(n) {
                n.preventDefault();
                var g = a(this);
                var m = g[0]._lrcontextmenu.dfop;
                var r = m.id + "_contextmenu_wrap";
                var j = a("#" + r);
                if (j.length > 0) {
                    if (!!m.before) {
                        m.before(n, j)
                    }
                    j.show()
                } else {
                    j = a('<div class="lr-contextmenu-wrap" id="' + r + '" ><ul class="lr-contextmenu-ul"></ul></div>');
                    var h = j.find(".lr-contextmenu-ul");
                    for (var o = 0, q = m.menulist.length; o < q; o++) {
                        var p = m.menulist[o];
                        var f = a('<li data-value="' + p.id + '" ><a href="javascript:;"><span>' + p.text + "</span><a></li>");
                        f.on("click", p.click);
                        h.append(f)
                    }
                    a("body").append(j);
                    j.show();
                    if (!!m.before) {
                        m.before(n, j)
                    }
                }
                var k = a(window).scrollTop() + n.clientY,
                    s = (j.width() + n.clientX < a(window).width()) ? n.clientX : n.clientX - j.width(),
                    t = (j.height() + n.clientY < a(window).height()) ? k : k - j.height();
                j.css({
                    left: s,
                    top: t
                })
            });
            a(document).on("click", function() {
                var g = d.id + "_contextmenu_wrap";
                var f = a("#" + g);
                f.hide()
            })
        }
    })(jQuery, top.learun);
    // (function($, learun) {
    //     var msgList = {};
    //     var imChat;
    //     var isLoaded = -1;
    //     var loadingMsg = {};
    //     var loadingMsg2 = {};
    //     var _im = {
    //         init: function() {
    //             _im.registerServer();
    //             _im.connect()
    //         },
    //         connect: function() {
    //             var loginInfo = learun.clientdata.get(["userinfo"]);
    //             $.ajax({
    //                 url: loginInfo.imUrl + "/hubs",
    //                 type: "get",
    //                 dataType: "text",
    //                 success: function(data) {
    //                     eval(data);
    //                     $.connection.hub.url = loginInfo.imUrl;
    //                     $.connection.hub.qs = {
    //                         userId: loginInfo.userId
    //                     };
    //                     imChat = $.connection.ChatsHub;
    //                     _im.registerClient();
    //                     $.connection.hub.start().done(function() {
    //                         _im.afterSuccess()
    //                     });
    //                     $.connection.hub.disconnected(function() {
    //                         _im.disconnected()
    //                     })
    //                 },
    //                 error: function(XMLHttpRequest, textStatus, errorThrown) {
    //                     isLoaded = 0
    //                 },
    //             })
    //         },
    //         afterSuccess: function() {
    //             isLoaded = 1;
    //             $(".lr-im-bell").show()
    //         },
    //         disconnected: function() {
    //             isLoaded = 0
    //         },
    //         registerClient: function() {
    //             if (imChat) {
    //                 imChat.client.revMsg = function(userId, msg, dateTime, isSystem) {
    //                     if (!loadingMsg2[userId]) {
    //                         var point = {
    //                             userId: userId,
    //                             content: msg,
    //                             time: dateTime,
    //                             isSystem: isSystem || 0
    //                         };
    //                         addMsgList(userId, point);
    //                         learun.im.revMsg && learun.im.revMsg(userId, msg, dateTime, isSystem || 0)
    //                     }
    //                 }
    //             }
    //         },
    //         registerServer: function() {
    //             _im.sendMsg = function(userId, msg) {
    //                 if (isLoaded == 1) {
    //                     imChat.server.sendMsg(userId, msg, 0)
    //                 } else {
    //                     if (isLoaded == -1) {
    //                         setTimeout(function() {
    //                             _im.sendMsg(userId, msg)
    //                         }, 100)
    //                     }
    //                 }
    //             }
    //         }
    //     };
    //
    //     function addMsgList(userId, item) {
    //         msgList[userId] = msgList[userId] || [];
    //         if (loadingMsg[userId]) {
    //             setTimeout(function() {
    //                 addMsgList(userId, item)
    //             }, 100)
    //         } else {
    //             msgList[userId].push(item)
    //         }
    //     }
    //     // learun.im = {
    //     //     addContacts: function(userId) {
    //     //         learun.httpAsync("Post", top.$.rootUrl + "/LR_IM/IMMsg/AddContact", {
    //     //             otherUserId: userId
    //     //         }, function(data) {})
    //     //     },
    //     //     getContacts: function(callback) {
    //     //         setTimeout(function() {
    //     //             learun.httpAsync("GET", top.$.rootUrl + "/LR_IM/IMMsg/GetContactsList", {}, function(data) {
    //     //                 data = data || [];
    //     //                 _im.init();
    //     //                 callback(data)
    //     //             })
    //     //         }, 1000)
    //     //     },
    //     //     updateContacts: function(userId) {
    //     //         learun.httpAsync("Post", top.$.rootUrl + "/LR_IM/IMMsg/UpdateContactState", {
    //     //             otherUserId: userId
    //     //         }, function(data) {})
    //     //     },
    //     //     sendMsg: function(userId, msg) {
    //     //         var time = "";
    //     //         var loginInfo = learun.clientdata.get(["userinfo"]);
    //     //         var point = {
    //     //             userId: loginInfo.userId,
    //     //             content: msg,
    //     //             time: learun.getDate("yyyy-MM-dd hh:mm:ss"),
    //     //             isSystem: 0
    //     //         };
    //     //         addMsgList(userId, point);
    //     //         learun.httpAsync("Post", top.$.rootUrl + "/LR_IM/IMMsg/SendMsg", {
    //     //             userId: userId,
    //     //             content: msg
    //     //         }, function(data) {
    //     //             _im.sendMsg(userId, msg)
    //     //         });
    //     //         if (msgList[userId].length > 1) {
    //     //             if (learun.parseDate(point.time).DateDiff("s", msgList[userId][msgList[userId].length - 2].time) > 60) {
    //     //                 time = point.time
    //     //             }
    //     //         } else {
    //     //             time = point.time
    //     //         }
    //     //         return time
    //     //     },
    //     //     getMsgList: function(userId, callback, isGetMsgList) {
    //     //         msgList[userId] = msgList[userId] || [];
    //     //         loadingMsg[userId] = true;
    //     //         if (msgList[userId].length == 0 && isGetMsgList) {
    //     //             loadingMsg2[userId] = true;
    //     //             learun.httpAsync("GET", top.$.rootUrl + "/LR_IM/IMMsg/GetMsgList", {
    //     //                 userId: userId
    //     //             }, function(data) {
    //     //                 msgList[userId] = msgList[userId] || [];
    //     //                 data = data || [];
    //     //                 var len = data;
    //     //                 if (len > 0) {
    //     //                     for (var i = len - 1; i >= 0; i--) {
    //     //                         var item = data[i];
    //     //                         var point = {
    //     //                             userId: _item.F_SendUserId,
    //     //                             content: _item.F_Content,
    //     //                             time: _item.F_CreateDate,
    //     //                             isSystem: _item.F_IsSystem || 0
    //     //                         };
    //     //                         msgList[userId].push(point)
    //     //                     }
    //     //                 }
    //     //                 callback(msgList[userId]);
    //     //                 loadingMsg[userId] = false;
    //     //                 loadingMsg2[userId] = false
    //     //             })
    //     //         } else {
    //     //             callback(msgList[userId]);
    //     //             loadingMsg[userId] = false
    //     //         }
    //     //     },
    //     //     registerRevMsg: function(callback) {
    //     //         learun.im.revMsg = callback
    //     //     }
    //     // }
    // })(jQuery, top.learun);
    var loaddfimg;

    function request(h) {
        for (var g = location.search.slice(1).split("&"), e = 0; e < g.length; e++) {
            var f = g[e].split("=");
            if (f[0] == h) {
                if ("undefined" == unescape(f[1])) {
                    break
                } else {
                    return unescape(f[1])
                }
            }
        }
        return ""
    }(function(a, c) {
        var e = request("tel");
        var b = request("openId");
        if (e) {
            c.httpAsync("GET", "http://www.learun.cn/webapi/info", {
                data: e
            }, function(f) {
                if (f && f.EnabledMark == -1) {
                    c.layerForm({
                        id: "Form",
                        title: "填写基本信息",
                        closeBtn: 0,
                        url: top.$.rootUrl + "/Utility/WriteInfoForm?tel=" + e,
                        width: 500,
                        height: 300,
                        btn: ["确认"],
                        callBack: function(g) {
                            return top[g].acceptClick()
                        }
                    })
                }
            })
        }
        if (b) {
            c.layerForm({
                id: "Form",
                title: "绑定账号",
                closeBtn: 0,
                url: top.$.rootUrl + "/Utility/BingWeChatForm?openId=" + b,
                width: 500,
                height: 400,
                btn: ["确认"],
                callBack: function(f) {
                    return top[f].acceptClick()
                }
            })
        }
        if (!e && !b) {
            window.location.href = a.rootUrl + "/login";
            return
        }
        var d = {
            init: function() {
                if (a("body").hasClass("IE") || a("body").hasClass("InternetExplorer")) {
                    a("#lr_loadbg").append('<img src="' + top.$.rootUrl + '/Content/images/ie-loader.gif" style="position: absolute;top: 0;left: 0;right: 0;bottom: 0;margin: auto;vertical-align: middle;">');
                    Pace.stop()
                } else {
                    Pace.on("done", function() {
                        a("#lr_loadbg").fadeOut();
                        Pace.options.target = "#learunpacenone"
                    })
                }
                toastr.options = {
                    closeButton: true,
                    debug: false,
                    newestOnTop: true,
                    progressBar: false,
                    positionClass: "toast-top-center",
                    preventDuplicates: false,
                    onclick: null,
                    showDuration: "300",
                    hideDuration: "1000",
                    timeOut: "3000",
                    extendedTimeOut: "1000",
                    showEasing: "swing",
                    hideEasing: "linear",
                    showMethod: "fadeIn",
                    hideMethod: "fadeOut"
                };
                c.frameTab.open({
                    moduleId: "0",
                    icon: "fa fa-desktop",
                    fullName: "我的桌面",
                    urlAddress: "/Home/AdminDesktop"
                }, true);
                c.clientdata.init(function() {
                    d.userInit();
                    bootstrap(a, c);
                    if (a("body").hasClass("IE") || a("body").hasClass("InternetExplorer")) {
                        a("#lr_loadbg").fadeOut()
                    }
                });
                d.loadbarInit();
                d.fullScreenInit();
                d.uitheme()
            },
            userInit: function() {
                var g = c.clientdata.get(["userinfo"]);
                var f = '<div class="lr-frame-personCenter"><a href="javascript:void(0);" class="dropdown-toggle" data-toggle="dropdown">';
                f += '<img id="userhead"src="' + top.$.rootUrl + "/LR_OrganizationModule/User/GetImg?userId=" + g.userId + '" >';
                f += "<span>" + g.realName + "</span>";
                f += "</a>";
                f += '<ul class="dropdown-menu pull-right">';
                f += '<li><a href="javascript:void(0);" id="lr_userinfo_btn"><i class="fa fa-user"></i>个人信息</a></li>';
                // f += '<li><a href="javascript:void(0);" id="lr_schedule_btn"><i class="fa fa-calendar"></i>我的日程</a></li>';
                f += '<li><a href="javascript:void(0);" id="lr_loginout_btn"><i class="fa fa-power-off"></i>安全退出</a></li>';
                f += "</ul></div>";
                a("body").append(f);
                a("#lr_loginout_btn").on("click", d.loginout);
                a("#lr_userinfo_btn").on("click", d.openUserCenter);
                a("#lr_clearredis_btn").on("click", d.clearredis)
            },
            loginout: function() {
                c.layerConfirm("注：您确定要安全退出本次登录吗？", function(f) {
                    if (f) {
                        c.loading(true, "退出系统中...");
                        c.httpAsyncPost(a.rootUrl + "/logout", {}, function(g) {
                            window.location.href = a.rootUrl + "/login"
                        })
                    }
                })
            },
            clearredis: function() {
                c.layerConfirm("注：您确定要清空全部后台缓存数据吗？", function(f) {
                    if (f) {
                        c.loading(true, "清理缓存数据中...");
                        c.httpAsyncPost(a.rootUrl + "/Home/ClearRedis", {}, function(g) {
                            window.location.href = a.rootUrl + "/login"
                        })
                    }
                })
            },
            openUserCenter: function() {
                c.frameTab.open({
                    moduleId: "1",
                    icon: "fa fa-user",
                    fullName: "个人中心",
                    urlAddress: "/UserCenter/Index"
                })
            },
            fullScreenInit: function() {
                var f = '<div class="lr_frame_fullscreen"><a href="javascript:void(0);" id="lr_fullscreen_btn" title="全屏"><i class="fa fa-arrows-alt"></i></a></div>';
                a("body").append(f);
                a("#lr_fullscreen_btn").on("click", function() {
                    if (!a(this).attr("fullscreen")) {
                        a(this).attr("fullscreen", "true");
                        d.requestFullScreen()
                    } else {
                        a(this).removeAttr("fullscreen");
                        d.exitFullscreen()
                    }
                })
            },
            requestFullScreen: function() {
                var f = document.documentElement;
                if (f.requestFullscreen) {
                    f.requestFullscreen()
                } else {
                    if (f.mozRequestFullScreen) {
                        f.mozRequestFullScreen()
                    } else {
                        if (f.webkitRequestFullScreen) {
                            f.webkitRequestFullScreen()
                        }
                    }
                }
            },
            exitFullscreen: function() {
                var f = document;
                if (f.exitFullscreen) {
                    f.exitFullscreen()
                } else {
                    if (f.mozCancelFullScreen) {
                        f.mozCancelFullScreen()
                    } else {
                        if (f.webkitCancelFullScreen) {
                            f.webkitCancelFullScreen()
                        }
                    }
                }
            },
            loadbarInit: function() {
                var f = '<div class="lr-loading-bar" id="lr_loading_bar" >';
                f += '<div class="lr-loading-bar-bg"></div>';
                f += '<div class="lr-loading-bar-message" id="lr_loading_bar_message"></div>';
                f += "</div>";
                a("body").append(f)
            },
            uitheme: function() {
                var i = top.$.cookie("Learn_ADMS_V6.1_UItheme") || "1";
                var g = a('<div class="lr-theme-setting"></div>');
                var f = a('<button class="btn btn-default"><i class="fa fa-spin fa-gear"></i></button>');
                var h = '<div class="panel-heading">界面风格</div>';
                h += '<div class="panel-body">';
                h += '<div><label><input type="radio" name="ui_theme" value="1" ' + (i == "1" ? "checked" : "") + ">经典版</label></div>";
                h += '<div><label><input type="radio" name="ui_theme" value="2" ' + (i == "2" ? "checked" : "") + ">风尚版</label></div>";
                h += '<div><label><input type="radio" name="ui_theme" value="3" ' + (i == "3" ? "checked" : "") + ">炫动版</label></div>";
                h += '<div><label><input type="radio" name="ui_theme" value="4" ' + (i == "4" ? "checked" : "") + ">飞扬版</label></div>";
                h += "</div>";
                g.append(f);
                g.append(h);
                a("body").append(g);
                f.on("click", function() {
                    var j = a(this).parent();
                    if (j.hasClass("opened")) {
                        j.removeClass("opened")
                    } else {
                        j.addClass("opened")
                    }
                });
                g.find("input").click(function() {
                    var j = a(this).val();
                    top.$.cookie("Learn_ADMS_V6.1_UItheme", j, {
                        path: "/"
                    });
                    location.reload()
                })
            },
        };
        a(function() {
            d.init()
        })
    })(window.jQuery, top.learun);
</script>
</body>

</html>




